Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can't change active_admin column width

I am using the github version of active_Admin as can be seen from my gemfile:

gem 'activeadmin', github: 'activeadmin'

I am trying to change the column width of a column in an index table. According to the documentation found here, it should be done like this:

column :notes, min_width: "400px"
column :notes, max_width: "800px"

However, the code above is not working. The column is 100px. How do I get this to work?

like image 970
Philip7899 Avatar asked May 04 '26 06:05

Philip7899


1 Answers

https://github.com/activeadmin/activeadmin/issues/4091

Unfortunately max_width only exists on "pages" (i.e. register_page), and not on "resources" (i.e. register). Instead you can do this:

.col-<column_name> { max-width: 200px; }

like image 165
Andrey Flegontov Avatar answered May 06 '26 19:05

Andrey Flegontov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!