Fix path in file cards

We are incorrectly dropping the last folder in the path.
This commit is contained in:
Mattias Granlund 2023-07-11 10:37:14 +02:00
parent 2da58af538
commit 1554c8a560

View File

@ -38,7 +38,7 @@
const parts = filepath.split('/');
if (parts.length == 0) return '';
return (
parts.slice(0, -2).join('/') +
parts.slice(0, -1).join('/') +
'/<span class="font-bold text-light-800 dark:text-dark-50">' +
parts[parts.length - 1] +
'</span>'