File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 815
815
updateFolderIcon ( group , state = 'auto' , play = true ) {
816
816
const svg = group . querySelector ( 'svg' ) ;
817
817
if ( ! svg ) return [ ] ;
818
-
819
818
let animations = this . #folderAnimCache. get ( group ) ;
820
819
if ( ! animations ) {
821
820
animations = svg . querySelectorAll ( 'animate, animateTransform, animateMotion' ) ;
822
821
this . #folderAnimCache. set ( group , animations ) ;
823
822
}
824
823
825
824
const isCollapsed = group . collapsed ;
825
+ svg . setAttribute ( 'state' , state === 'auto' ? ( isCollapsed ? 'close' : 'open' ) : state ) ;
826
826
const hasActive = group . hasAttribute ( 'has-active' ) ;
827
827
828
828
const OPACITY = {
Original file line number Diff line number Diff line change @@ -260,6 +260,8 @@ zen-folder {
260
260
261
261
& svg {
262
262
filter : contrast (150% );
263
+ transition : 0.2s scale;
264
+ transform-origin : right bottom;
263
265
264
266
& image {
265
267
fill-opacity : 0.9 ;
@@ -268,6 +270,10 @@ zen-folder {
268
270
transform : translate (-180% , 8% );
269
271
}
270
272
}
273
+
274
+ & svg [state = 'open' ] {
275
+ scale : 0.9 ;
276
+ }
271
277
}
272
278
273
279
& ::before {
You can’t perform that action at this time.
0 commit comments