mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
fix: improve tab dragging behavior and enhance split view session restoration
This commit is contained in:
@@ -781,7 +781,11 @@
|
||||
newIndex++;
|
||||
}
|
||||
}
|
||||
gBrowser.moveTabTo(draggedTab, newIndex);
|
||||
// If it's the last tab, move it to the end
|
||||
if (tabsTarget === gBrowser.tabs.at(-1)) {
|
||||
newIndex++;
|
||||
}
|
||||
gBrowser.moveTabTo(draggedTab, newIndex, { forceStandaloneTab: true });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -982,6 +982,9 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this._sessionRestoring) {
|
||||
return;
|
||||
}
|
||||
this.activateSplitView(group, true);
|
||||
return;
|
||||
}
|
||||
@@ -1776,7 +1779,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
||||
}
|
||||
|
||||
onAfterWorkspaceSessionRestore() {
|
||||
if (this.currentView >= 0 && !gBrowser.selectedTab.pinned) {
|
||||
if (gBrowser.selectedTab.group?.hasAttribute("split-view-group") && !gBrowser.selectedTab.pinned) {
|
||||
// Activate all browsers in the split view
|
||||
this.currentView = -1;
|
||||
this.onLocationChange(gBrowser.selectedTab.linkedBrowser);
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git a/toolkit/themes/shared/popup.css b/toolkit/themes/shared/popup.css
|
||||
index ed0caa97db5726a7d1bc1cd0aa7af3fdf99690dc..730fd3a9dd90343c97ecb8a3d7891242256de0da 100644
|
||||
index ed0caa97db5726a7d1bc1cd0aa7af3fdf99690dc..4827373b138dd59dd4adc5289adef95ef2410090 100644
|
||||
--- a/toolkit/themes/shared/popup.css
|
||||
+++ b/toolkit/themes/shared/popup.css
|
||||
@@ -21,8 +21,8 @@ panel {
|
||||
@@ -22,6 +22,19 @@ index ed0caa97db5726a7d1bc1cd0aa7af3fdf99690dc..730fd3a9dd90343c97ecb8a3d7891242
|
||||
|
||||
@media (prefers-contrast) {
|
||||
--panel-border-color: color-mix(in srgb, currentColor 60%, transparent);
|
||||
@@ -54,9 +52,9 @@ panel {
|
||||
-moz-default-appearance: menupopup;
|
||||
/* The blur behind doesn't blur all that much, add a semi-transparent
|
||||
* background to improve contrast */
|
||||
- --panel-background: light-dark(rgba(255, 255, 255, .5), rgba(0, 0, 0, .5));
|
||||
- --panel-border-color: transparent;
|
||||
- --panel-shadow-margin: 0px;
|
||||
+ --panel-background: light-dark(rgba(255, 255, 255, .5), rgba(0, 0, 0, .5)) !important;
|
||||
+ --panel-border-color: transparent !important;
|
||||
+ --panel-shadow-margin: 0px !important;
|
||||
}
|
||||
|
||||
@media (-moz-platform: macos) {
|
||||
@@ -208,7 +206,6 @@ panel:where([type="arrow"]) {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user