mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Apply suggestions from Arthur
This commit is contained in:
parent
a9aa0cbaa0
commit
35cff12974
BIN
netbox/project-static/dist/netbox.css
vendored
BIN
netbox/project-static/dist/netbox.css
vendored
Binary file not shown.
@ -36,6 +36,12 @@ span.color-label {
|
||||
}
|
||||
|
||||
// Override mdi font-size to adjust filter icon size
|
||||
.btn.dropdown-toggle > .mdi-filter-settings {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
.column-filter.dropdown > .dropdown-toggle > .mdi-filter-settings {
|
||||
font-size: .625rem;
|
||||
}
|
||||
|
||||
.column-filter.dropdown > .dropdown-menu {
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
.column-filter.dropdown-toggle:after { content: none }
|
@ -1,11 +1,11 @@
|
||||
{% load form_helpers %}
|
||||
{% if form_field %}
|
||||
<div class="column-filter dropdown">
|
||||
<a href="#" class="btn dropdown-toggle" data-bs-toggle="dropdown" data-bs-auto-close="outside">
|
||||
<i class="mdi mdi-filter-settings"></i>
|
||||
</a>
|
||||
<a href="#" class="dropdown-toggle" data-bs-toggle="dropdown" data-bs-auto-close="outside"><i class="mdi mdi-filter-settings"></i></a>
|
||||
<div class="dropdown-menu">
|
||||
{% render_table_filter_field form_field table=table request=request %}
|
||||
<div class="px-3 py-3">
|
||||
{% render_table_filter_field form_field table=table request=request %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
@ -151,8 +151,8 @@ def render_table_filter_field(field, table, request):
|
||||
url = table.htmx_url + querystring(request, **kwargs)
|
||||
elif request:
|
||||
url = querystring(request, **kwargs)
|
||||
# Set HTMX args
|
||||
|
||||
# Set HTMX args
|
||||
if hasattr(field.field, 'widget'):
|
||||
field.field.widget.attrs.update({
|
||||
'id': f'table_filter_id_{field.name}',
|
||||
|
Loading…
Reference in New Issue
Block a user