Skip to content

Commit 65f70f9

Browse files
author
Kirk Wang
committed
🐛 Fix visual bug with fonts selection label
This commit will align the label of the fonts selection label over the dropdown. Ref: - notch8/palni_palci_knapsack#178
1 parent c388e99 commit 65f70f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/hyrax/admin/appearances/_default_fonts_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<% df = @form.default_fonts %>
44
<% font = f.object.body_font %>
55

6-
<%= f.input :body_font, label: 'Select Body Font', required: false, input_html: { class: 'font-fields', data: { default_value: df['body_font'] } } %>
6+
<%= f.input :body_font, label: 'Select Body Font', required: false, label_html: { class: 'text-left' }, input_html: { class: 'font-fields', data: { default_value: df['body_font'] } } %>
77
<%= link_to 'Restore Default', '#font', class: 'btn btn-secondary restore-default-font', data: { default_target: 'body_font' } %>
88

9-
<%= f.input :headline_font, label: 'Select Header Font', required: false, input_html: { class: 'font-fields', data: { default_value: df['headline_font'] } } %>
9+
<%= f.input :headline_font, label: 'Select Header Font', required: false, label_html: { class: 'text-left' }, input_html: { class: 'font-fields', data: { default_value: df['headline_font'] } } %>
1010
<%= link_to 'Restore Default', '#font', class: 'btn btn-secondary restore-default-font', data: { default_target: 'headline_font' } %>
1111

1212
</div>

0 commit comments

Comments
 (0)