Skip to content

Commit

Permalink
⚙️ Add default for simple form wrappers inline
Browse files Browse the repository at this point in the history
This commit will adjust the wrappers (inline) default styling to make
the elements look like they're not squished.  Which was particularly
affecting the lease forms.
  • Loading branch information
kirkkwang committed Jan 21, 2025
1 parent 3a1d3ec commit 9bea382
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/initializers/simple_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,12 @@
end
end
end

config.wrappers :inline, tag: 'span', class: 'form-group inline', error_class: 'has-error' do |b|
b.use :html5
b.use :placeholder
b.use :label, class: 'control-label mr-1'
b.use :input, class: 'form-control mr-1'
b.use :error, wrap_with: { tag: 'span', class: 'help-block' }
end
end

0 comments on commit 9bea382

Please sign in to comment.