Fix size of roles multi-select when editing user

i.e. for buefy themes
This commit is contained in:
Lance Edgar 2021-08-31 22:04:37 -05:00
parent 54f1a52ed0
commit 560575e53f
2 changed files with 3 additions and 0 deletions

View file

@ -66,6 +66,7 @@
placeholder '(please choose)';
class string: form-control ${css_class or ''};
:multiple str(multiple).lower();
native-size size;
style style;
v-model vmodel;
@input input_handler;">

View file

@ -217,6 +217,8 @@ class UserView(PrincipalMasterView):
size = len(roles)
if size < 3:
size = 3
elif size > 20:
size = 20
f.set_widget('roles', dfwidget.SelectWidget(multiple=True,
size=size,
values=role_values))