mirror of
https://github.com/immich-app/immich.git
synced 2025-11-25 05:50:43 +09: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:
@@ -13,7 +13,7 @@
|
|||||||
export let getColor: (path: string) => string | undefined;
|
export let getColor: (path: string) => string | undefined;
|
||||||
|
|
||||||
$: path = normalizeTreePath(`${parent}/${value}`);
|
$: path = normalizeTreePath(`${parent}/${value}`);
|
||||||
$: isActive = active.startsWith(path);
|
$: isActive = active === path || active.startsWith(`${path}/`);
|
||||||
$: isOpen = isActive;
|
$: isOpen = isActive;
|
||||||
$: isTarget = active === path;
|
$: isTarget = active === path;
|
||||||
$: color = getColor(path);
|
$: color = getColor(path);
|
||||||
|
|||||||
Reference in New Issue
Block a user