Show autohiding toolbars when a window modal dialog is open.
Toolbar layout properties, notably --urlbar-container-height, is re-computed when window modal dialog is closed and the values would be totally incorrect if the toolbars are hidden at that time. This fixes #582 and likely several other issues as well.
This commit is contained in:
@@ -80,6 +80,7 @@ See the above repository for updates as well as full license text. */
|
||||
transform-origin: 0px calc((var(--urlbar-container-height) - var(--urlbar-height)) / 2);
|
||||
transform: rotateX(89.5deg);
|
||||
}
|
||||
:root[window-modal-open] #urlbar[popover],
|
||||
#mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts,#selection-shortcut-action-panel,#chat-shortcuts-options-panel,#tab-preview-panel)) ~ toolbox #urlbar[popover],
|
||||
#navigator-toolbox:is(:hover,:focus-within) #urlbar[popover],
|
||||
#urlbar-container > #urlbar[popover]:is([focused],[open]){
|
||||
@@ -113,6 +114,12 @@ See the above repository for updates as well as full license text. */
|
||||
/* Selected tab needs higher z-index now to "hide" the broder below it */
|
||||
.tabbrowser-tab[selected]{ z-index: 3 !important; }
|
||||
|
||||
/* Show toolbars when a window modal dialog is open, otherwise toolbar layout breaks after closing the dialog */
|
||||
:root[window-modal-open] :is(#nav-bar,#PersonalToolbar){
|
||||
transition-delay: 100ms !important;
|
||||
transform: rotateX(0);
|
||||
}
|
||||
|
||||
/* SELECT TOOLBAR BEHAVIOR */
|
||||
/* Comment out or delete one of these to disable that behavior */
|
||||
|
||||
|
||||
@@ -42,6 +42,8 @@ See the above repository for updates as well as full license text. */
|
||||
transform-origin: 0px calc(0px - var(--tab-min-height) - var(--tab-block-margin) * 2);
|
||||
transform: rotateX(89.9deg);
|
||||
}
|
||||
|
||||
:root[window-modal-open] #urlbar[popover],
|
||||
#mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts,#selection-shortcut-action-panel,#chat-shortcuts-options-panel,#tab-preview-panel)) ~ toolbox #urlbar[popover],
|
||||
#navigator-toolbox:is(:hover,:focus-within,[movingtab]) #urlbar[popover],
|
||||
#urlbar-container > #urlbar[popover]:is([focused],[open]){
|
||||
@@ -50,6 +52,8 @@ See the above repository for updates as well as full license text. */
|
||||
transition-delay: 33ms;
|
||||
transform: rotateX(0deg);
|
||||
}
|
||||
|
||||
:root[window-modal-open] #navigator-toolbox,
|
||||
#mainPopupSet:has(> [panelopen]:not(#ask-chat-shortcuts,#selection-shortcut-action-panel,#chat-shortcuts-options-panel,#tab-preview-panel)) ~ toolbox,
|
||||
#navigator-toolbox:has(#urlbar:is([open],[focus-within])),
|
||||
#navigator-toolbox:is(:hover,:focus-within,[movingtab]){
|
||||
|
||||
Reference in New Issue
Block a user