Skip to content

Commit 123ee85

Browse files
committed
Fix: Min width of select2 box
1 parent d405c51 commit 123ee85

File tree

2 files changed

+8
-6
lines changed
  • djangocms_frontend
    • contrib/link/templates/djangocms_frontend/admin
    • templates/djangocms_frontend/admin/includes

2 files changed

+8
-6
lines changed

djangocms_frontend/contrib/link/templates/djangocms_frontend/admin/link.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55
{{ block.super }}
66
<style> {# Bugfix for Django admin styling #}
77
@media screen {
8-
.change-form .select2-dropdown {
9-
background: var(--body-bg);
10-
border: 1px solid var(--border-color);
8+
.change-form .select2-dropdown {
9+
background: var(--body-bg);
10+
border: 1px solid var(--border-color);
11+
}
12+
}
13+
select {
14+
min-width: 160px;
1115
}
12-
}
1316
</style>
1417
<script src="{% static 'djangocms_frontend/js/bundle.link.js' %}"></script>
1518
{% endblock %}

djangocms_frontend/templates/djangocms_frontend/admin/includes/fieldset.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<fieldset class="module aligned {{ fieldset.classes|cut:"collapse" }}">
2-
{% if fieldset.name and not "collapse" in fieldset.classes %}<h2>{{ fieldset.name }}</h2>{% endif %}
2+
{% if fieldset.name %}<h2>{{ fieldset.name }}</h2>{% endif %}
33
{% if fieldset.description %}
44
<div class="description">{{ fieldset.description|safe }}</div>
55
{% endif %}
@@ -32,4 +32,3 @@
3232
</div>
3333
{% endfor %}
3434
</fieldset>
35-

0 commit comments

Comments
 (0)