administrate
administrate copied to clipboard
CSS not being applied to pagination
What were you trying to do?
Everything works fine, except pagination, which is not being shown as expected (sample)
What did you end up with (logs, or, even better, example apps are great!)?
I tried to fix it by:
- Adding bootstrap5-kaminari-views gem. However, in order to pick up
paginatemethod must be called with thethemeattribute. So I continued to step 2 - Modifying
administratesource code and substitute correspondent lines in filesapp/views/fields/has_many/_show.html.erbandapp/views/administrate/application/index.html.erb. It didn't work. Still CSS was not being applied correctly.
What versions are you running?
- Rails 7.0.2.2
- administrate 0.17.0
i believed you will need import BS5 css file manually
This is strange. It should work as installed. Is this on development mode? In both, the linked CSS should have styles on .pagination and elements under it. In development mode it should include comments pointing at SCSS source files. For example:
/* line 1, ../../app/assets/stylesheets/administrate/components/_pagination.scss */
.pagination {
margin-top: 1.5em;
padding-left: 1.5em;
padding-right: 1.5em;
text-align: center;
}
/* line 7, ../../app/assets/stylesheets/administrate/components/_pagination.scss */
.pagination .first,
.pagination .prev,
...
Do you see any of this?
can you try add bs5 css and js into manifest.js
Thanks,
@jubilee2 - Is that comment for me or for @bgvo? :slightly_smiling_face:
for @bgvo
Closing due to lack of activity.