forked from ZenBrowserMirrors/zen-desktop
feat: Make sure switching woprkspaces from browsers always selects the tab first, b=(no-bug), c=common, workspaces
This commit is contained in:
parent
ffea12305d
commit
fdb71c6b0e
2 changed files with 11 additions and 3 deletions
|
@ -160,7 +160,10 @@
|
||||||
|
|
||||||
#urlbar[breakout-extend='true'] {
|
#urlbar[breakout-extend='true'] {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
||||||
|
.urlbar-input-container {
|
||||||
--urlbar-container-padding: 0px;
|
--urlbar-container-padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
& #identity-box {
|
& #identity-box {
|
||||||
margin-right: calc(var(--urlbar-margin-inline) - 1px);
|
margin-right: calc(var(--urlbar-margin-inline) - 1px);
|
||||||
|
@ -172,13 +175,16 @@
|
||||||
color-mix(in srgb, hsl(0, 0%, 5%) 80%, var(--zen-colors-primary) 20%)
|
color-mix(in srgb, hsl(0, 0%, 5%) 80%, var(--zen-colors-primary) 20%)
|
||||||
);
|
);
|
||||||
@media -moz-pref('zen.theme.acrylic-elements') {
|
@media -moz-pref('zen.theme.acrylic-elements') {
|
||||||
--zen-urlbar-background: color-mix(
|
--zen-urlbar-background-transparent: color-mix(
|
||||||
in srgb,
|
in srgb,
|
||||||
var(--zen-urlbar-background-base) 70%,
|
var(--zen-urlbar-background-base) 70%,
|
||||||
transparent 30%
|
transparent 30%
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
background-color: var(--zen-urlbar-background, var(--zen-urlbar-background-base)) !important;
|
background-color: var(
|
||||||
|
--zen-urlbar-background-transparent,
|
||||||
|
var(--zen-urlbar-background-base)
|
||||||
|
) !important;
|
||||||
box-shadow: 0px 0px 10rem -2px rgba(0, 0, 0, 0.9) !important;
|
box-shadow: 0px 0px 10rem -2px rgba(0, 0, 0, 0.9) !important;
|
||||||
backdrop-filter: none !important;
|
backdrop-filter: none !important;
|
||||||
border-radius: 12px !important;
|
border-radius: 12px !important;
|
||||||
|
|
|
@ -3299,6 +3299,8 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||||
|
|
||||||
this._workspaceChangeInProgress = true;
|
this._workspaceChangeInProgress = true;
|
||||||
try {
|
try {
|
||||||
|
this._lastSelectedWorkspaceTabs[workspaceToSwitch.uuid] =
|
||||||
|
gZenGlanceManager.getTabOrGlanceParent(tab);
|
||||||
await this.changeWorkspace(workspaceToSwitch);
|
await this.changeWorkspace(workspaceToSwitch);
|
||||||
} finally {
|
} finally {
|
||||||
this._workspaceChangeInProgress = false;
|
this._workspaceChangeInProgress = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue