Skip to content

Commit

Permalink
Fix width issue on translation values form and view page
Browse files Browse the repository at this point in the history
  • Loading branch information
westonganger committed Sep 6, 2024
1 parent e4159ac commit 9ea8169
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

### Unreleased - [View Diff](https://github.com/westonganger/rails_i18n_manager/compare/v1.0.1...master)
- Drop support for Rails v5.x
- [#19](https://github.com/westonganger/rails_i18n_manager/pull/19) - Fix width issue on translation values form and view page

### v1.0.1 - [View Diff](https://github.com/westonganger/rails_i18n_manager/compare/v1.0.0...v1.0.1)
- [#14](https://github.com/westonganger/rails_i18n_manager/pull/14) - Remove usage of Array#intersection to fix errors in Ruby 2.6 and below
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
options[:label_wrapper_html][:class].concat(" col-md-1 col-form-label text-md-end").strip!

options[:input_wrapper_html][:class] ||= ""
options[:input_wrapper_html][:class].concat(" col-auto g-md-0").strip!
options[:input_wrapper_html][:class].concat(" col-md-11").strip!
end

if type == :text_area
Expand Down Expand Up @@ -49,7 +49,7 @@

<% field = capture do %>
<% if type == :view %>
<%= text_field_tag nil, options[:input_html][:value], options[:input_html] %>
<%= text_area_tag nil, options[:input_html][:value], options[:input_html] %>
<% elsif type == :select %>
<%=
f.select(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

.nested-fields.translation-value-fields
= f.hidden_field :locale
= f.field :translation, type: :textarea, label: "#{locale}", required: required, help_text: help_text, field_layout: :horizontal, input_html: {rows: 1, width: "100%;"}
= f.field :translation, type: :textarea, label: "#{locale}", required: required, help_text: help_text, field_layout: :horizontal, input_html: {rows: 1}

0 comments on commit 9ea8169

Please sign in to comment.