jqh před 5 roky
rodič
revize
9c83e9389c

+ 1 - 2
resources/views/form/color.blade.php

@@ -4,8 +4,7 @@
         <span>{!! $label !!}</span>
     </div>
 
-    <div class="{{$viewClass['field']}}" style="width: 210px;flex: none">
-
+    <div class="{{$viewClass['field']}}">
         @include('admin::form.error')
 
         <div class="input-group">

+ 2 - 0
src/Form/Field/Color.php

@@ -64,6 +64,8 @@ JS;
     {
         $this->addScript();
 
+        $this->defaultAttribute('style', 'width: 160px;flex:none');
+
         return parent::render();
     }
 }

+ 1 - 1
src/Form/Field/Date.php

@@ -39,7 +39,7 @@ class Date extends Text
         $this->script = "$('{$this->getElementClassSelector()}').datetimepicker(".json_encode($this->options).');';
 
         $this->prepend('<i class="fa fa-calendar fa-fw"></i>')
-            ->defaultAttribute('style', 'width: 200px');
+            ->defaultAttribute('style', 'width: 200px;flex:none');
 
         return parent::render();
     }

+ 1 - 1
src/Form/Field/Datetime.php

@@ -8,7 +8,7 @@ class Datetime extends Date
 
     public function render()
     {
-        $this->defaultAttribute('style', 'width: 200px');
+        $this->defaultAttribute('style', 'width: 200px;flex:none');
 
         return parent::render();
     }

+ 2 - 1
src/Form/Field/Icon.php

@@ -14,7 +14,8 @@ class Icon extends Text
         $value = old($this->column, $this->value());
 
         $this->prepend("<i class='fa {$value}'>&nbsp;</i>")
-            ->defaultAttribute('autocomplete', 'off');
+            ->defaultAttribute('autocomplete', 'off')
+            ->defaultAttribute('style', 'width: 160px;flex:none');
 
         return parent::render();
     }

+ 2 - 0
src/Form/Field/Ip.php

@@ -22,6 +22,8 @@ class Ip extends Text
     {
         $this->inputmask($this->options);
 
+        $this->defaultAttribute('style', 'width: 160px;flex:none');
+
         $this->prepend('<i class="fa fa-laptop fa-fw"></i>')
             ->defaultAttribute('style', 'width: 200px');
 

+ 2 - 0
src/Form/Field/Mobile.php

@@ -20,6 +20,8 @@ class Mobile extends Text
     {
         $this->inputmask($this->options);
 
+        $this->defaultAttribute('style', 'width: 160px;flex:none');
+
         $this->prepend('<i class="feather icon-smartphone"></i>');
 
         return parent::render();

+ 2 - 0
src/Form/Field/Number.php

@@ -17,6 +17,8 @@ class Number extends Text
         $this->addScript();
         $this->addStyle();
 
+        $this->defaultAttribute('style', 'width: 140px;flex:none');
+
         $this->prepend('');
 
         return parent::render();

+ 1 - 1
src/Form/Field/Time.php

@@ -9,7 +9,7 @@ class Time extends Date
     public function render()
     {
         $this->prepend('<i class="fa fa-clock-o fa-fw"></i>')
-            ->defaultAttribute('style', 'width: 200px');
+            ->defaultAttribute('style', 'width: 200px;flex:none');
 
         return parent::render();
     }