admin/config: nicer

Massimo Melina committed Jan 22, 2023 at 09:55 UTC 44b17884fcb1caf761b1d3aa17b2fe022c11dc86
2 files changed +5 -5
admin/src/ConfigPage.ts
+4 -4
@@ -99,18 +99,18 @@ export default function ConfigPage() {
99 getError: x => !x && admins?.length===0 && "First create at least one admin account",
100 helperText: "To access Admin without entering credentials"
101 },
102 - { k: 'log', label: logLabels.log, lg: 3, helperText: "Requests are logged here" },
103 - { k: 'error_log', label: logLabels.error_log, lg: 3, placeholder: "errors go to main log", helperText: "If you want errors in a different log" },
102 + { k: 'log', label: logLabels.log, md: 3, helperText: "Requests are logged here" },
103 + { k: 'error_log', label: logLabels.error_log, md: 3, placeholder: "errors go to main log", helperText: "If you want errors in a different log" },
104 { k: 'log_rotation', comp: SelectField, options: [{ value:'', label:"disabled" }, 'daily', 'weekly', 'monthly' ],
105 helperText: "To avoid an endlessly-growing single log file, you can opt for rotation"
106 },
107 - { k: 'proxies', comp: NumberField, min: 0, max: 9, sm: 6, lg: 6, label: "How many HTTP proxies between this server and users?",
107 + { k: 'proxies', comp: NumberField, min: 0, max: 9, sm: 6, label: "How many HTTP proxies between this server and users?",
108 error: proxyWarning(values, status),
109 helperText: "Wrong number will prevent detection of users' IP address"
110 },
111 { k: 'allowed_referer', placeholder: "any",
112 helperText: values.allowed_referer ? "Leave empty to allow any" : "Use this to avoid direct links from other websites", },
113 - { k: 'zip_calculate_size_for_seconds', comp: NumberField, sm: 6, label: "Calculate ZIP size for seconds",
113 + { k: 'zip_calculate_size_for_seconds', comp: NumberField, sm: 6, label: "Calculate ZIP size for seconds",
114 helperText: "If time is not enough, the browser will not show download percentage" },
115 { k: 'custom_header', multiline: true, sx: { '& textarea': { fontFamily: 'monospace' } },
116 helperText: "Any HTML code here will be used as header for the Frontend"
admin/src/dialog.ts
+1 -1
@@ -44,7 +44,7 @@ dialogsDefaults.Container = function Container(d:DialogOptions) {
44 d.title && h(DialogTitle, {}, d.title),
45 h(DialogContent, {
46 ref,
47 - sx: { ...sx, px: p, pb: p, display: 'flex', flexDirection: 'column', }
47 + sx: { ...sx, px: p, pb: p, display: 'flex', flexDirection: 'column', justifyContent: 'center', }
48 }, h(d.Content) )
49 )
50 }