can't change the height of a text field in simple_form

前端 未结 8 1643
耶瑟儿~
耶瑟儿~ 2021-02-19 02:22

I\'ve tried

  #Default size for text inputs.  
  config.default_input_size = 10

from config/initializers/simple_form.rb

I\'ve also tri

8条回答
  •  粉色の甜心
    2021-02-19 02:48

    if you want to change "height", you need to modify css attribute:

    <%= f.input :message, input_html: {style: 'height:10px;'} %>
    

提交回复
热议问题