-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flex-grow to all input fields to allow them to grow to the max si…
…ze of the parent
- Loading branch information
Showing
11 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="block md:inline-block md:w-32 flex-shrink-0 text-gray-700"> | ||
<%= render "madmin/shared/label", form: form, field: field %> | ||
</div> | ||
<%= form.number_field field.attribute_name, step: :any, class: "form-input" %> | ||
<%= form.number_field field.attribute_name, step: :any, class: "flex-grow form-input" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="block md:inline-block md:w-32 flex-shrink-0 text-gray-700"> | ||
<%= render "madmin/shared/label", form: form, field: field %> | ||
</div> | ||
<%= form.file_field field.attribute_name, class: "form-input" %> | ||
<%= form.file_field field.attribute_name, class: "flex-grow form-input" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="block md:inline-block md:w-32 flex-shrink-0 text-gray-700"> | ||
<%= render "madmin/shared/label", form: form, field: field %> | ||
</div> | ||
<%= form.number_field field.attribute_name, step: :any, class: "form-input" %> | ||
<%= form.number_field field.attribute_name, step: :any, class: "flex-grow form-input" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="block md:inline-block md:w-32 flex-shrink-0 text-gray-700"> | ||
<%= render "madmin/shared/label", form: form, field: field %> | ||
</div> | ||
<%= form.number_field field.attribute_name, class: "form-input" %> | ||
<%= form.number_field field.attribute_name, class: "flex-grow form-input" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="block md:inline-block md:w-32 flex-shrink-0 text-gray-700"> | ||
<%= render "madmin/shared/label", form: form, field: field %> | ||
</div> | ||
<%= form.text_area field.attribute_name, class: "form-input" %> | ||
<%= form.text_area field.attribute_name, class: "flex-grow form-input" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="block md:inline-block md:w-32 flex-shrink-0 text-gray-700"> | ||
<%= render "madmin/shared/label", form: form, field: field %> | ||
</div> | ||
<%= form.password_field field.attribute_name, class: "form-input" %> | ||
<%= form.password_field field.attribute_name, class: "flex-grow form-input" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="block md:inline-block md:w-32 flex-shrink-0 text-gray-700"> | ||
<%= render "madmin/shared/label", form: form, field: field %> | ||
</div> | ||
<%= form.text_field field.attribute_name, class: "form-input" %> | ||
<%= form.text_field field.attribute_name, class: "flex-grow form-input" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="block md:inline-block md:w-32 flex-shrink-0 text-gray-700"> | ||
<%= render "madmin/shared/label", form: form, field: field %> | ||
</div> | ||
<%= form.text_area field.attribute_name, class: "form-input" %> | ||
<%= form.text_area field.attribute_name, class: "flex-grow form-input" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="block md:inline-block md:w-32 flex-shrink-0 text-gray-700"> | ||
<%= render "madmin/shared/label", form: form, field: field %> | ||
</div> | ||
<%= form.text_field field.attribute_name, class: "form-input" %> | ||
<%= form.text_field field.attribute_name, class: "flex-grow form-input" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<%= form.label field.attribute_name, class: "inline-block w-32 flex-shrink-0" %> | ||
<%= form.text_field field.attribute_name, class: "form-input" %> | ||
<%= form.text_field field.attribute_name, class: "flex-grow form-input" %> |