bootstrap-ruby / bootstrap_form

Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
MIT License
1.64k stars 352 forks source link

Rich text area not auto-expanding vertically #540

Open markburns opened 5 years ago

markburns commented 5 years ago

A picture is worth a thousand words.


image

= form.rich_text_area :summary
= form.submit "Save", class: 'btn-primary'

I haven't dug into the CSS yet to understand what's happening, but I'm not sure this is working out of the box as you might expect it to.

markburns commented 5 years ago

seems to be some clash with the .form-control class.

Workaround: <- This isn't actually persisting

= form.label :summary
= form.hidden_field :summary
trix-editor id="foo" input="foo_summary_trix_input_foo" role="textbox"
  == form.object.summary

image

lcreid commented 5 years ago

Thanks for the report. I will try to take a look at this in the near future, but I'm pretty busy at work these days. If you want to submit a pull request, I'd be happy to look at it. If you decide to work on a PR, assign the bug to yourself (look for the link in the upper-right area of this page.