feat: Scale down the folder icon when expanding, b=no-bug, c=folders

This commit is contained in:
mr. m
2025-08-10 19:20:44 +02:00
parent 489923413f
commit 7f244453fc
2 changed files with 7 additions and 1 deletions

View File

@@ -815,7 +815,6 @@
updateFolderIcon(group, state = 'auto', play = true) {
const svg = group.querySelector('svg');
if (!svg) return [];
let animations = this.#folderAnimCache.get(group);
if (!animations) {
animations = svg.querySelectorAll('animate, animateTransform, animateMotion');
@@ -823,6 +822,7 @@
}
const isCollapsed = group.collapsed;
svg.setAttribute('state', state === 'auto' ? (isCollapsed ? 'close' : 'open') : state);
const hasActive = group.hasAttribute('has-active');
const OPACITY = {

View File

@@ -260,6 +260,8 @@ zen-folder {
& svg {
filter: contrast(150%);
transition: 0.2s scale;
transform-origin: right bottom;
& image {
fill-opacity: 0.9;
@@ -268,6 +270,10 @@ zen-folder {
transform: translate(-180%, 8%);
}
}
& svg[state='open'] {
scale: 0.9;
}
}
&::before {