admin/config: better layout

Massimo Melina committed Oct 29, 2023 at 17:35 UTC c976b3fa1c55af16798432ecb1e6b8adb106f2cd
2 files changed +3 -2
admin/src/ConfigFilePage.ts
+1 -1
@@ -41,7 +41,7 @@ export default function ConfigFilePage() {
41 setTimeout(() => el.focus(), 500)
42 }
43 }, "Edit"),
44 - h(Box, { flex: 1}, h(DisplayField, { label: "File path", value: data?.fullPath }))
44 + h(Box, { flex: 1, minWidth: 'fit-content' }, h(DisplayField, { label: "File path", value: data?.fullPath }))
45 ),
46 element || text !== undefined && // avoids bad undo behaviour on start
47 h(KeepInScreen, { margin: 10 }, h(TextEditor, {
src/index.ts
+2 -1
@@ -25,7 +25,8 @@ import { acmeMiddleware } from './acme'
25 ok(_.intersection(Object.keys(frontEndApis), Object.keys(adminApis)).length === 0) // they share same endpoints, don't clash
26
27 process.title = 'HFS ' + VERSION
28 -const keys = process.env.COOKIE_SIGN_KEYS?.split(',') || [randomId(30)]
28 +const keys = process.env.COOKIE_SIGN_KEYS?.split(',')
29 + || [randomId(30)] // randomness at start gives some extra security, btu also invalidates existing sessions
30 export const app = new Koa({ keys })
31 app.use(someSecurity)
32 .use(selfCheckMiddleware)