File tree Expand file tree Collapse file tree 3 files changed +27
-15
lines changed Expand file tree Collapse file tree 3 files changed +27
-15
lines changed Original file line number Diff line number Diff line change 3
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
4
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
5
*/
6
- panel [type = 'arrow' ][ animate = 'open' ] {
6
+ panel [type = 'arrow' ] {
7
7
@media (-moz-platform : macos) and (-moz-panel-animations) {
8
8
-moz-window-transform : scale (0.3 );
9
- animation : zen-jello-animation-macos 0.4s ease-out forwards;
10
- & [side = 'bottom' ] {
11
- /* Animate from the bottom */
12
- -zen-window-transform-origin : 0 100% ;
13
- }
14
- : root[zen-right-side = 'true' ] & {
15
- /* Animate from the right */
16
- -zen-window-transform-origin : 100% 0 ;
17
9
10
+ & [animate = 'open' ] {
11
+ animation : zen-jello-animation-macos 0.4s ease-out forwards;
18
12
& [side = 'bottom' ] {
19
- /* Animate from the bottom right */
20
- -zen-window-transform-origin : 100% 100% ;
13
+ /* Animate from the bottom */
14
+ -zen-window-transform-origin : 0 100% ;
15
+ }
16
+ : root[zen-right-side = 'true' ] & {
17
+ /* Animate from the right */
18
+ -zen-window-transform-origin : 100% 0 ;
19
+
20
+ & [side = 'bottom' ] {
21
+ /* Animate from the bottom right */
22
+ -zen-window-transform-origin : 100% 100% ;
23
+ }
21
24
}
22
25
}
23
26
}
Original file line number Diff line number Diff line change 698
698
items . forEach ( ( item ) => item . removeAttribute ( 'selected' ) ) ;
699
699
const targetItem = items [ index ] ;
700
700
targetItem . setAttribute ( 'selected' , 'true' ) ;
701
- targetItem . scrollIntoView ( { block : 'nearest ' } ) ;
701
+ targetItem . scrollIntoView ( { block : 'start' , behavior : 'smooth ' } ) ;
702
702
} else if ( event . key === 'Enter' ) {
703
703
// Enter to select the currently highlighted item
704
704
const highlightedItem = tabsList . querySelector ( '.folders-tabs-list-item[selected]' ) ;
801
801
this . #popup. hidePopup ( ) ;
802
802
} ) ;
803
803
804
+ item . addEventListener ( 'mouseenter' , ( ) => {
805
+ for ( const sibling of tabsList . children ) {
806
+ sibling . removeAttribute ( 'selected' ) ;
807
+ }
808
+ item . setAttribute ( 'selected' , 'true' ) ;
809
+ } ) ;
810
+
804
811
tabsList . appendChild ( item ) ;
805
812
}
806
813
}
Original file line number Diff line number Diff line change @@ -360,8 +360,10 @@ zen-folder {
360
360
outline : none !important ;
361
361
}
362
362
363
- # zen-folder-tabs-popup # zen-folder-tabs-list {
364
- padding : 4px ;
363
+ # zen-folder-tabs-list {
364
+ padding : 0 4px ;
365
+ max-height : 248px ;
366
+ overflow-y : auto;
365
367
}
366
368
367
369
# zen-folder-tabs-popup .zen-folder-tabs-list-search-icon {
@@ -424,8 +426,8 @@ zen-folder {
424
426
direction : ltr;
425
427
padding : 0 var (--tab-inline-padding );
426
428
border-radius : 4px ;
429
+ margin : 2px 0 ;
427
430
428
- & : hover ,
429
431
.folders-tabs-list-item [selected ] & {
430
432
background-color : color-mix (in srgb, currentColor, transparent 90% );
431
433
}
You can’t perform that action at this time.
0 commit comments