fix: admin/accounts: layout problem with groups

Massimo Melina committed Apr 13, 2022 at 18:40 UTC 509893009826aab8c598cc067a98bd6c89e2cecc
1 file changed +1 -1
admin/src/AccountsPage.ts
+1 -1
@@ -164,7 +164,7 @@ function AccountForm({ account, done, groups, close }: FormProps) {
164 account2icon(values, { fontSize: 'large', sx: { p: 1 }})
165 ],
166 fields: [
167 - { k: 'username', label: group ? 'Group name' : undefined, autoComplete: 'off', validate: x => x>'' || "Required", xl: 4 },
167 + { k: 'username', label: group ? 'Group name' : undefined, autoComplete: 'off', validate: x => x>'' || "Required", xl: group ? 12 : 4 },
168 !group && { k: 'password', md: 6, xl: 4, type: 'password', autoComplete: 'new-password', label: add ? "Password" : "Change password",
169 validate: x => x>'' || !add || "Please provide a password"
170 },