admin: avoid wastefully wide pages
Massimo Melina committed
Mar 15, 2022 at 15:46 UTC
97a11b908ce12bb3b4dd2b514d64e8caa207bcd2
2 files changed
+4
-4
admin/src/AccountsPage.ts
+1
-1
@@ -44,7 +44,7 @@ export default function AccountsPage() {
44
const { list }: { list: Account[] } = res
45
const account = addGroup !== null ? { username: '', hasPassword: !addGroup }
46
: sel.length === 1 && list.find(x => x.username === sel[0])
47
- return h(Grid, { container: true, maxWidth: '50em' },
47
+ return h(Grid, { container: true, maxWidth: '60em' },
48
h(Grid, { item: true, xs: 12 },
49
h(Box, {
50
display: 'flex',
admin/src/VfsPage.ts
+3
-3
@@ -47,12 +47,12 @@ export default function VfsPage() {
47
id2node.clear()
48
return res
49
}
50
- return h(Grid, { container:true, rowSpacing: 1 },
51
- h(Grid, { item:true, sm: 6, lg: 7 },
50
+ return h(Grid, { container:true, rowSpacing: 1, maxWidth: '80em' },
51
+ h(Grid, { item:true, sm: 6, lg: 5 },
52
h(Typography, { variant: 'h6', mb:1, }, "Virtual File System"),
53
h(VfsMenuBar),
54
snap.vfs && h(VfsTree, { id2node })),
55
- h(Grid, { item:true, sm: 6, lg: 5, maxWidth:'100%' },
55
+ h(Grid, { item:true, sm: 6, lg: 7, maxWidth:'100%' },
56
h(FileCard)))
57
}
58