mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-02 16:08:41 +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) {
|
||||
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.removeGroup(groupIndex);
|
||||
gBrowser.selectedTab = remainingTabs[remainingTabs.length - 1];
|
||||
} else {
|
||||
const node = this.getSplitNodeFromTab(tab);
|
||||
const toUpdate = this.removeNode(node);
|
||||
@@ -1364,7 +1365,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
||||
}
|
||||
const container = event.currentTarget.closest('.browserSidebarContainer');
|
||||
const tab = window.gBrowser.tabs.find(
|
||||
(t) => t.linkedBrowser.closest('.browserSidebarContainer') === container
|
||||
(t) => t.linkedBrowser?.closest('.browserSidebarContainer') === container
|
||||
);
|
||||
if (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;
|
||||
& browser {
|
||||
transition: opacity 0.2s ease-out !important;
|
||||
@@ -132,7 +132,7 @@
|
||||
align-items: center;
|
||||
position: fixed;
|
||||
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));
|
||||
box-shadow: 0 0 0 1px var(--button-primary-border-color);
|
||||
gap: 0.8rem;
|
||||
|
@@ -1269,7 +1269,7 @@
|
||||
position: absolute;
|
||||
|
||||
&[hidden='true'] {
|
||||
--hidden-essentials-width: var(--zen-sidebar-width);
|
||||
--hidden-essentials-width: calc(var(--zen-sidebar-width) + var(--zen-toolbox-padding));
|
||||
max-width: var(
|
||||
--hidden-essentials-width
|
||||
) !important; /* To still allow essentials to grid the tabs */
|
||||
|
Reference in New Issue
Block a user