1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fix left padding of login button in top menu

Clean up spacing for nav pills

Markdown fields should default to using monospace font

Wrap action buttons in object page header

Fix page link style for non-HTMX paginators

Clean up styling of Markdown preview widget

Fix spacing around placeholder text for empty panel tables

Remove obsolete templates

Tweak checkbox input spacing

Fix toggling of clear button for quick search

Fix positioning of quick search filter dropdown

Fix positioning of 'highlight device' button

Fix styling for custom field group names

Widen buttons on nav menu items

Restyle the login page

Fix active nav-pill background color in dark mode

Fix spacing around 'map' button for sites
This commit is contained in:
Jeremy Stretch
2024-01-23 10:30:23 -05:00
parent 780ce77aed
commit d302982a88
34 changed files with 153 additions and 154 deletions

View File

@@ -43,7 +43,7 @@
{{ p }}
</a>
{% elif p %}
<a href="{% querystring request page=p %}" class="btn btn-outline-secondary{% if page.number == p %} active{% endif %}">
<a href="{% querystring request page=p %}" class="page-link {% if page.number == p %} active{% endif %}">
{{ p }}
</a>
{% else %}

View File

@@ -5,11 +5,11 @@
{% if heading %}
<h5 class="card-header{% if panel_class %} text-{{ panel_class }}{% endif %}">{{ heading }}</h5>
{% endif %}
<div class="table-responsive">
{% if table.rows %}
{% if table.rows %}
<div class="table-responsive">
{% render_table table 'inc/table.html' %}
{% else %}
<div class="text-muted">{% trans "None" %}</div>
{% endif %}
</div>
</div>
{% else %}
<div class="card-body text-muted">{% trans "None" %}</div>
{% endif %}
</div>

View File

@@ -5,14 +5,16 @@
{% if custom_fields %}
<div class="card">
<h5 class="card-header">{% trans "Custom Fields" %}</h5>
{% for group_name, fields in custom_fields.items %}
{% if group_name %}
<h6>{{ group_name }}</h6>
{% endif %}
<table class="table table-hover attr-table">
<table class="table table-hover attr-table">
{% for group_name, fields in custom_fields.items %}
{% if group_name %}
<tr>
<th scope="row" colspan="2" class="fw-bold">{{ group_name }}</th>
</tr>
{% endif %}
{% for field, value in fields.items %}
<tr>
<th scope="row">{{ field }}
<th scope="row"{% if group_name %} class="ps-3"{% endif %}>{{ field }}
{% if field.description %}
<i
class="mdi mdi-information text-primary"
@@ -27,8 +29,8 @@
</td>
</tr>
{% endfor %}
</table>
{% endfor %}
{% endfor %}
</table>
</div>
{% endif %}
{% endwith %}

View File

@@ -3,12 +3,14 @@
<div class="row mb-3">
<div class="col-auto d-print-none">
<div class="input-group me-2 quicksearch hide-last-child">
<input type="search" results="5" name="q" id="quicksearch" class="form-control" placeholder="Quick search"
<div class="input-group input-group-flat me-2 quicksearch">
<input type="search" results="5" name="q" id="quicksearch" class="form-control px-2 py-1" placeholder="Quick search"
hx-get="{{ request.full_path }}" hx-target="#object_list" hx-trigger="keyup changed delay:500ms, search" />
<button class="btn bg-transparent" type="button" id="quicksearch_clear"><i class="mdi mdi-close-circle"></i></button>
</div>
<span class="input-group-text py-1">
<a href="#" id="quicksearch_clear" class="d-none text-secondary"><i class="mdi mdi-close-circle"></i></a>
</span>
{% block extra_table_controls %}{% endblock %}
</div>
</div>
<div class="col-auto ms-auto d-print-none">
{% if request.user.is_authenticated and table_modal %}

View File

@@ -33,7 +33,7 @@
</div>
</div>
{% else %}
<div class="btn-group">
<div class="btn-group ps-2">
<a class="btn btn-primary" type="button" href="{% url 'login' %}?next={{ request.path }}">
<i class="mdi mdi-login-variant"></i> {% trans "Log In" %}
</a>