mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-03 08:28:38 +00:00
chore: Small details to split view, b=(no-bug), c=split-view, tabs
This commit is contained in:
@@ -147,7 +147,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
|||||||
if (groupIndex < 0) {
|
if (groupIndex < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.removeTabFromGroup(tab, groupIndex, event.forUnsplit);
|
this.removeTabFromGroup(tab, groupIndex, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -188,6 +188,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
|||||||
this.resetTabState(remainingTab, forUnsplit);
|
this.resetTabState(remainingTab, forUnsplit);
|
||||||
}
|
}
|
||||||
this.removeGroup(groupIndex);
|
this.removeGroup(groupIndex);
|
||||||
|
gBrowser.selectedTab = remainingTabs[remainingTabs.length - 1];
|
||||||
} else {
|
} else {
|
||||||
const node = this.getSplitNodeFromTab(tab);
|
const node = this.getSplitNodeFromTab(tab);
|
||||||
const toUpdate = this.removeNode(node);
|
const toUpdate = this.removeNode(node);
|
||||||
@@ -1364,7 +1365,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
|||||||
}
|
}
|
||||||
const container = event.currentTarget.closest('.browserSidebarContainer');
|
const container = event.currentTarget.closest('.browserSidebarContainer');
|
||||||
const tab = window.gBrowser.tabs.find(
|
const tab = window.gBrowser.tabs.find(
|
||||||
(t) => t.linkedBrowser.closest('.browserSidebarContainer') === container
|
(t) => t.linkedBrowser?.closest('.browserSidebarContainer') === container
|
||||||
);
|
);
|
||||||
if (tab) {
|
if (tab) {
|
||||||
window.gBrowser.selectedTab = tab;
|
window.gBrowser.selectedTab = tab;
|
||||||
|
@@ -41,7 +41,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#tabbrowser-tabpanels[zen-split-view='true']:not([zen-split-resizing]) > [zen-split-anim='true'] {
|
#tabbrowser-tabpanels[zen-split-view='true']:not([zen-split-resizing]) > [zen-split='true'] {
|
||||||
transition: inset 0.09s ease-out !important;
|
transition: inset 0.09s ease-out !important;
|
||||||
& browser {
|
& browser {
|
||||||
transition: opacity 0.2s ease-out !important;
|
transition: opacity 0.2s ease-out !important;
|
||||||
@@ -132,7 +132,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
padding: 0.4rem 0.6rem 0.2rem 0.6rem;
|
padding: 0.4rem 0.6rem 0.2rem 0.6rem;
|
||||||
border-radius: 8px;
|
border-radius: var(--zen-native-content-radius);
|
||||||
background-color: light-dark(rgba(255, 255, 255, 1), rgba(0, 0, 0, 1));
|
background-color: light-dark(rgba(255, 255, 255, 1), rgba(0, 0, 0, 1));
|
||||||
box-shadow: 0 0 0 1px var(--button-primary-border-color);
|
box-shadow: 0 0 0 1px var(--button-primary-border-color);
|
||||||
gap: 0.8rem;
|
gap: 0.8rem;
|
||||||
|
@@ -1269,7 +1269,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
&[hidden='true'] {
|
&[hidden='true'] {
|
||||||
--hidden-essentials-width: var(--zen-sidebar-width);
|
--hidden-essentials-width: calc(var(--zen-sidebar-width) + var(--zen-toolbox-padding));
|
||||||
max-width: var(
|
max-width: var(
|
||||||
--hidden-essentials-width
|
--hidden-essentials-width
|
||||||
) !important; /* To still allow essentials to grid the tabs */
|
) !important; /* To still allow essentials to grid the tabs */
|
||||||
|
Reference in New Issue
Block a user