admin/fs: smarter layout for masks

Massimo Melina committed Jun 13, 2022 at 23:39 UTC 2d3b1c4cc9456b48f833ded371b11e1770d8e2dc
1 file changed +1 -1
admin/src/FileForm.ts
+1 -1
@@ -95,7 +95,7 @@ export default function FileForm({ file }: { file: VfsNode }) {
95 toField: Boolean, fromField: (v:boolean) => v ? 'index.html' : null,
96 helperText: md("This folder may be a website because contains `index.html`. Enabling this will show the website instead of the list of files.")
97 },
98 - isDir && { k: 'masks', multiline: true, xl: 6, toField: JSON.stringify, fromField: v => v ? JSON.parse(v) : undefined,
98 + isDir && { k: 'masks', multiline: true, xl: true, toField: JSON.stringify, fromField: v => v ? JSON.parse(v) : undefined,
99 helperText: "This is a special field. Leave it empty unless you know what you are doing." }
100 ]
101 })