Skip to content

Commit

Permalink
chore: update path to include filename
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasBuchfink committed Jun 18, 2024
1 parent 80d2c5e commit 1fabdac
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -536,11 +536,9 @@ function ProjectMenu() {
const shortenProjectPath = (projectPath: string) => {
const projectPathArray = projectPath.split("/")
if (projectPathArray.length > 3) {
return ".../" + projectPathArray.at(-3) + "/" + projectPathArray.at(-2)
} else if (projectPathArray.length > 2) {
return ".../" + projectPathArray.at(-2)
return ".../" + projectPathArray.at(-3) + "/" + projectPathArray.at(-2) + "/" + projectPathArray.at(-1)
} else {
return "./"
return "." + projectPath
}
}

Expand Down

0 comments on commit 1fabdac

Please sign in to comment.