Skip to content

Commit

Permalink
🐛 Fix visual bug with fonts selection label
Browse files Browse the repository at this point in the history
This commit will align the label of the fonts selection label over the
dropdown.

Ref:
- notch8/palni_palci_knapsack#178
  • Loading branch information
Kirk Wang committed Jan 29, 2025
1 parent c388e99 commit 65f70f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<% df = @form.default_fonts %>
<% font = f.object.body_font %>

<%= f.input :body_font, label: 'Select Body Font', required: false, input_html: { class: 'font-fields', data: { default_value: df['body_font'] } } %>
<%= 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'] } } %>
<%= link_to 'Restore Default', '#font', class: 'btn btn-secondary restore-default-font', data: { default_target: 'body_font' } %>

<%= f.input :headline_font, label: 'Select Header Font', required: false, input_html: { class: 'font-fields', data: { default_value: df['headline_font'] } } %>
<%= 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'] } } %>
<%= link_to 'Restore Default', '#font', class: 'btn btn-secondary restore-default-font', data: { default_target: 'headline_font' } %>

</div>
Expand Down

0 comments on commit 65f70f9

Please sign in to comment.