admin/internet: added a "Domain roots" label to help communicate the element giving support
Massimo Melina committed
Mar 22, 2026 at 12:09 UTC
4f86a693be58038f45814d0dfd2d0fcd6c4585c1
2 files changed
+4
-3
admin/src/ArrayField.ts
+2
-2
@@ -49,8 +49,8 @@ export function ArrayField<T extends object>({
49
setApi?.({ isEqual: isOrderedEqual }) // don't rely on stringify, as it wouldn't work with non-json values
50
const [undo, setUndo] = useState<typeof valueA>()
51
return h(Fragment, {},
52
- h(Flex, { rowGap: 0, flexWrap: 'wrap' },
53
- label && h(FormLabel, { sx: { ml: .5 } }, label),
52
+ h(Flex, { rowGap: 0, flexWrap: 'wrap', ml: '2px' },
53
+ label && h(FormLabel, { sx: { color: 'text.primary' } }, label),
54
helperText && h(FormHelperText, {}, helperText),
55
),
56
h(Box, { ...rest },
admin/src/InternetPage.ts
+2
-1
@@ -276,6 +276,7 @@ export default function InternetPage({ setTitleSide }: PageProps) {
276
onClick: () => void changeBaseUrl().then(config.reload)
277
}, "Change"),
278
),
279
+ h(Divider),
280
h(ConfigForm<{ roots: any, force_address: boolean }>, {
281
saveOnChange: true,
282
onSave() {
@@ -285,7 +286,7 @@ export default function InternetPage({ setTitleSide }: PageProps) {
286
fields: [
287
{
288
k: CFG.roots,
288
- label: false,
289
+ label: "Domain roots",
290
helperText: "You can decide different home-folders (in the VFS) for different domains, a bit like virtual hosts. If none is matched, the default home will be used.",
291
comp: ArrayField,
292
fields: [