ux: admin/fs: smaller font for path-part in the tree

Massimo Melina committed Jul 1, 2024 at 11:38 UTC 2c60ed5ff4434452ff8e2201e8c64e0993cb6fe1
1 file changed +1 -1
admin/src/VfsTree.ts
+1 -1
@@ -105,7 +105,7 @@ export default function VfsTree({ id2node, statusApi }:{ id2node: Map<string, Vf
105 const rel = ps && source?.startsWith(ps) ? '.' + source.slice(ps.length) : source
106 return !rel || !source?.endsWith(name) || rel.length > 45 ? name
107 : h('span', {},
108 - h('span', { style: { opacity: .4 } }, rel.slice(0,-name.length)),
108 + h('span', { style: { opacity: .4, fontSize: 'small' } }, rel.slice(0,-name.length)),
109 rel.slice(-name.length),
110 )
111 })()