Closed HT-Moh closed 1 week ago
From the screenshot it is hard to find out where exactly this problem is occurring. I already merged a PR fixing similar issue. If the problem persist, create a new issue with more information how to replicate the problem.
Regarding the CSS classes in settings.py, I provided an explanation in your PR.
It would be beneficial to have a method to modify variables such as
SELECT_CLASSES
,BASE_INPUT_CLASSES
, andBASE_CLASSES
insidewidgets.py
. For instance, to alter the widget's style (refer to the screenshot) seems not to be possible or at least not straightforward without overriding bunch of classes. the style is dynamically added inModelAdminMixin
functionformfield_for_foreignkey
andformfield_for_choice_field
. I think the solution is to move all style classed tosettings.py
and change the imports onadmin.py
the change on the style done in firebug by removing
w-full
andmax-w-2x
and addingflex-grow