Skip to content

Commit

Permalink
Enhance vertical tabs layout with max-height adjustment; update hover…
Browse files Browse the repository at this point in the history
… duration and animation easing for improved user experience
  • Loading branch information
mauro-balades committed Jan 17, 2025
1 parent ee86bff commit dd5a59a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@
padding-inline-end: 0 !important;
display: flex !important;
flex-direction: column;
max-height: calc(100vh - 12 * (var(--tab-min-height) + 2 * var(--tab-block-margin))) !important;

& .tabbrowser-tab:not(:hover) .tab-background:not([selected]):not([multiselected]) {
background: transparent !important;
Expand Down
2 changes: 1 addition & 1 deletion src/browser/base/zen-components/ZenCompactMode.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ var gZenCompactModeManager = {
{
element: this.sidebar,
screenEdge: this.sidebarIsOnRight ? 'right' : 'left',
keepHoverDuration: 300,
keepHoverDuration: 100,
},
{
element: document.getElementById('zen-appcontent-navbar-container'),
Expand Down
4 changes: 2 additions & 2 deletions src/browser/base/zen-components/ZenWorkspaces.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1332,14 +1332,14 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
if (out) {
element.animate([{ transform: 'translateX(0)' }, { transform: `translateX(${direction === 'left' ? '-' : ''}100%)` }], {
duration: 100,
easing: 'ease',
easing: 'ease-in',
fill: 'both',
}).onfinish = callback;
return;
}
element.animate([{ transform: `translateX(${direction === 'left' ? '-' : ''}100%)` }, { transform: 'translateX(0)' }], {
duration: 100,
easing: 'ease',
easing: 'ease-out',
fill: 'both',
}).onfinish = callback;
}
Expand Down

0 comments on commit dd5a59a

Please sign in to comment.