Skip to content

Commit

Permalink
Fix missing window controls in FF123+ #135
Browse files Browse the repository at this point in the history
Fixes missing window controls when the hide-tabs-bar tweak is enabled.
  • Loading branch information
bmFtZQ committed Feb 19, 2024
1 parent 4d58446 commit 123cff4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions chrome/toolbar/urlbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
--urlbar-icon-padding: calc(var(--toolbarbutton-inner-padding) - 2px) !important;
--urlbar-margin-inline: 6px !important;
--identity-box-margin-inline: 6px !important;
--uc-urlbar-icon-inline-padding: calc(var(--uc-toolbarbutton-inner-inline-padding) - 2px);
--uc-urlbar-inline-padding: 6px;
--uc-urlbar-icon-inline-padding: var(--uc-toolbarbutton-inner-inline-padding);
--uc-urlbar-inline-padding: 5px;
--uc-urlbar-shadow: 0 0 4px rgb(0 0 0 / .1);
--urlbarView-rich-suggestion-default-icon-size: 32px !important;

Expand Down
9 changes: 7 additions & 2 deletions chrome/tweaks/hide-tabs-bar.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
visibility: collapse !important;
}

/* Fix issue with missing window controls. */
&[tabsintitlebar] #titlebar {
will-change: auto !important;
}

/* Add some padding to the top of the navbar */
&[tabsintitlebar] #nav-bar {
padding-top: var(--uc-tab-top-margin, 0) !important;
Expand Down Expand Up @@ -117,7 +122,7 @@
&:where([inFullscreen], [tabsintitlebar]) #nav-bar {
/* Window controls on the right. */
@media not (-moz-gtk-csd-reversed-placement) {
padding-inline: 0 calc(var(--uc-window-controls-width, 0px) + var(--uc-titlebar-drag-space)) !important;
padding-inline-end: calc(var(--uc-window-controls-width, 0px) + var(--uc-titlebar-drag-space)) !important;

/* Remove the padding from the side of the navbar */
& #PanelUI-menu-button {
Expand All @@ -127,7 +132,7 @@

/* Window controls on the left. */
@media (-moz-gtk-csd-reversed-placement) {
padding-inline: calc(var(--uc-window-controls-width, 0px) + var(--uc-titlebar-drag-space)) 0 !important;
padding-inline-start: calc(var(--uc-window-controls-width, 0px) + var(--uc-titlebar-drag-space)) !important;

/* Remove the padding from the side of the navbar */
& #nav-bar-customization-target > :is(toolbarbutton, toolbaritem):first-child {
Expand Down

0 comments on commit 123cff4

Please sign in to comment.