Skip to content

Commit

Permalink
Fix admin form style.
Browse files Browse the repository at this point in the history
  • Loading branch information
yamat47 committed Aug 12, 2024
1 parent 922bcc3 commit 77b355d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/app/assets/stylesheets/admin/field.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.admin-field {
min-height: 2rem;
display: flex;
gap: 1rem;
flex-direction: column;
gap: 0.25rem;

.admin-field__label, .admin-field__value {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion app/app/assets/stylesheets/admin/fields.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.admin-fields {
display: flex;
flex-direction: column;
gap: 1rem;
gap: 2.0rem;
}
2 changes: 1 addition & 1 deletion app/app/views/admin/game_fields/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
.admin-field__label
= GameField.human_attribute_name(:name)
.admin-field__value
= form.text_field :name, class: 'admin-form-text_field', required: true
= form.text_field :name, class: 'admin-form-text_field is-long', required: true
.admin-fields__field
.admin-field
.admin-field__label
Expand Down
6 changes: 3 additions & 3 deletions app/app/views/admin/teams/team_profiles/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
.admin-field__label
= TeamProfile.human_attribute_name(:x_url)
.admin-field__value
= form.url_field :x_url, class: 'admin-form-text_field'
= form.url_field :x_url, class: 'admin-form-text_field is-long'
.admin-fields__field
.admin-field
.admin-field__label
= TeamProfile.human_attribute_name(:instagram_url)
.admin-field__value
= form.url_field :instagram_url, class: 'admin-form-text_field'
= form.url_field :instagram_url, class: 'admin-form-text_field is-long'
.admin-fields__field
.admin-field
.admin-field__label
= TeamProfile.human_attribute_name(:homepage_url)
.admin-field__value
= form.url_field :homepage_url, class: 'admin-form-text_field'
= form.url_field :homepage_url, class: 'admin-form-text_field is-long'
- if team_profile.errors.any?
.admin-fields__field
.admin-form-errors
Expand Down

0 comments on commit 77b355d

Please sign in to comment.