1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

fix(web): correct color for active tree item (#12318)

* fix(web): correct color for active tree item

* remove white space
This commit is contained in:
Alex 2024-09-04 14:07:32 -05:00 committed by GitHub
parent f8211a128e
commit 0a8bd7dc66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@
export let getColor: (path: string) => string | undefined;
$: path = normalizeTreePath(`${parent}/${value}`);
$: isActive = active.startsWith(path);
$: isActive = active === path || active.startsWith(`${path}/`);
$: isOpen = isActive;
$: isTarget = active === path;
$: color = getColor(path);