You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be a niche case, but I'm using django-semantic-admin alongside django-reversion, and there's a minor cosmetic issue that occurs in the toolbar at the top of the change list page, because of these lines in semantic_admin/templates/admin/change_list.html:
{% if not has_import_permission %}
<div class="two wide field" style="margin-bottom: 0;"></div>
{% endif %}
{% if not has_export_permission %}
<div class="two wide field" style="margin-bottom: 0;"></div>
{% endif %}
What this ends up doing for my setup is it takes up space that can't be used by other buttons, as in the screenshot below:
I wonder if there's a way to not have those empty fields show up, especially if the library isn't installed? I was able to find a workaround by overriding the template file with my own version that just cuts out those lines, but it would be nice if this was built in!
This might be a niche case, but I'm using django-semantic-admin alongside django-reversion, and there's a minor cosmetic issue that occurs in the toolbar at the top of the change list page, because of these lines in
semantic_admin/templates/admin/change_list.html
:What this ends up doing for my setup is it takes up space that can't be used by other buttons, as in the screenshot below:
I wonder if there's a way to not have those empty fields show up, especially if the library isn't installed? I was able to find a workaround by overriding the template file with my own version that just cuts out those lines, but it would be nice if this was built in!
Here's what I want it to look like:
Thanks @globophobe!
The text was updated successfully, but these errors were encountered: