basic-web: now mobile friendly

Massimo Melina committed Oct 19, 2024 at 17:21 UTC 9cf3e3094d20a5fec9442c94d03c099168687179
1 file changed +2
src/basicWeb.ts
+2
@@ -39,6 +39,8 @@ export function basicWeb(ctx: Koa.Context, node: VfsNode) {
39 return `<li>${a(pathEncode(name) + (isFolder && !await hasDefaultFile(el, ctx) ? force : ''), name)}\n`
40 }))
41 ctx.body = stream
42 + stream.push(`<meta name="viewport" content="width=device-width" />`)
43 + stream.push(`<style>body { font-size: 16pt; }</style>`)
44 stream.push(`<title>${title.get()}</title><body>`)
45 stream.push(getSection('basicHeader'))
46 const u = getCurrentUsername(ctx)