Enhance vertical tabs layout with max-height adjustment; update hover duration and animation easing for improved user experience

This commit is contained in:
mr. M
2025-01-17 21:41:49 +01:00
parent ee86bff81c
commit dd5a59a1cb
3 changed files with 4 additions and 3 deletions

View File

@@ -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;

View File

@@ -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'),

View File

@@ -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;
}