mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-02 22:42:56 +03:00
Fix path in file cards
We are incorrectly dropping the last folder in the path.
This commit is contained in:
parent
2da58af538
commit
1554c8a560
@ -38,7 +38,7 @@
|
|||||||
const parts = filepath.split('/');
|
const parts = filepath.split('/');
|
||||||
if (parts.length == 0) return '';
|
if (parts.length == 0) return '';
|
||||||
return (
|
return (
|
||||||
parts.slice(0, -2).join('/') +
|
parts.slice(0, -1).join('/') +
|
||||||
'/<span class="font-bold text-light-800 dark:text-dark-50">' +
|
'/<span class="font-bold text-light-800 dark:text-dark-50">' +
|
||||||
parts[parts.length - 1] +
|
parts[parts.length - 1] +
|
||||||
'</span>'
|
'</span>'
|
||||||
|
Loading…
Reference in New Issue
Block a user