frontend: no final / on folders (leave it to style, if desired)
Massimo Melina committed
Feb 24, 2023 at 17:48 UTC
a9ff9de1e98fca0960603d30b7d0b151e1e29812
1 file changed
+1
-1
frontend/src/BrowseFiles.ts
+1
-1
@@ -189,7 +189,7 @@ const Entry = memo((entry: DirEntry & { midnight: Date, separator?: string }) =>
189
delete state.selected[relativePath]
190
},
191
}),
192
- isFolder ? h(Link, { to: base+href }, hIcon('folder'), relativePath)
192
+ isFolder ? h(Link, { to: base+href }, hIcon('folder'), relativePath.slice(0,-1))
193
: h(Fragment, {},
194
containerDir && h(Link, { to: base+fixUrl(containerDir), className:'container-folder' }, hIcon('file'), containerDir ),
195
h('a', { href }, !containerDir && hIcon('file'), name)