fix: plugin.config.array not displayed when height is not specified

Massimo Melina committed Dec 26, 2022 at 17:04 UTC d72cb91a3a9323019a8bf6090fae65b2c2d8673b
3 files changed +3 -5
admin/src/ArrayField.ts
+1 -1
@@ -65,7 +65,7 @@ export function ArrayField<T=any>({ label, helperText, fields, value, onChange,
65 return h(Fragment, {},
66 label && h(FormLabel, { sx: { ml: 1 } }, label),
67 helperText && h(FormHelperText, {}, helperText),
68 - h(Box, rest,
68 + h(Box, { height: '20em', ...rest },
69 h(DataGrid, {
70 columns,
71 rows,
plugins/vhosting/plugin.js
+1 -3
@@ -9,9 +9,7 @@ exports.config = {
9 fields: {
10 host: { label: "Domain" },
11 root: { helperText: "Root path in VFS" },
12 - },
13 - defaultValue: [],
14 - height: 300,
12 + }
13 },
14 mandatory: {
15 label: "Block requests that are not using any of the domains above",
todo.md
+1 -1
@@ -1,6 +1,6 @@
1 # To do
2 -- fix: array for plugins has layout problems (see download-manager)
2 - frontend: "download zip" should offer a third button like "select some files"
3 +- plugins: after installing, switch to installed (and perhaps highlight new one)
4 - plugins' log, accessible in admin
5 - fix: cannot switch off https and switch on http at the same time
6 - fix: chrome is prompting to save credentials without username because of login's double-form