full width related labels for all product change forms

This commit is contained in:
Oliver Zander 2025-11-18 09:51:25 +01:00 committed by Tobias Herre
parent b156ee0067
commit 8abc051a59
3 changed files with 6 additions and 10 deletions

View File

@ -157,6 +157,9 @@ class BaseProjectAdmin(admin.ModelAdmin):
class Media: class Media:
js = ('dropdown/js/otrs_link.js',) js = ('dropdown/js/otrs_link.js',)
css = {
'all': ['css/full-width-related-labels.css'],
}
granted: bool granted: bool

View File

@ -0,0 +1,3 @@
.related-widget-wrapper div label {
width: auto;
}

View File

@ -1,10 +0,0 @@
{% extends 'admin/change_form.html' %}
{% block extrastyle %}
{{ block.super }}
<style>
.related-widget-wrapper div label {
width: auto;
}
</style>
{% endblock %}