django-jazzmin icon indicating copy to clipboard operation
django-jazzmin copied to clipboard

Broken visuals in Model list for different users permissions

Open AndrejGorodnij opened this issue 2 years ago • 1 comments

After adding list_editable to admin model, I have broken visual table in model list.

This is Admin user view: Admin user

This is Manager user view (Managers can only Change and Delete items, and can't Create): Manager user

I think it just reserve place for admins role CRUD icons for Editable field

It can be fixed by setting min-width or width style for first-item of list Manager user

P.S. Thanks for your work, it really amazing =)

AndrejGorodnij avatar Jan 29 '22 09:01 AndrejGorodnij

You could add the style attribute for the field on the form. For example.

base_salary = forms.IntegerField( required=False, label='Salario Base', min_value=0, widget=forms.NumberInput(attrs={ 'style': 'width:25%' }) )

MathiasKowoll avatar Mar 31 '22 15:03 MathiasKowoll