firefox-csshacks icon indicating copy to clipboard operation
firefox-csshacks copied to clipboard

"window_control_placeholder_support.css" causes window controls to be in top middle

Open aviadhaham opened this issue 11 months ago • 6 comments
trafficstars

Issue

image

After updating to Firefox 1.33, the issue started, the window controls, instead of being top left as always, they started being at the top, but in middle ("floating" over the URL bar in my case).

After debugging using the devtools, I found the issue is here, in the marked element: Issue Chronicle - How I Fixed the Firefox window controls out of order

Solution

I took the latest version of the CSS file (github), added the below CSS, and it solved it:

/* To fix the weird position of the window controls from the middle to the left */
#TabsToolbar {
  justify-content: normal !important;
}

@MrOtherGuy If that's good for you, I can create a PR. I wanted to share first about the issue.

aviadhaham avatar Nov 30 '24 15:11 aviadhaham

I'd rather not touch window_control_placeholder_support.css at all anymore. It should not be used in Firefox 133 anymore. For styles that did depend on it there are now better ways to do things.

MrOtherGuy avatar Nov 30 '24 16:11 MrOtherGuy

I'd rather not touch window_control_placeholder_support.css at all anymore. It should not be used in Firefox 133 anymore. For styles that did depend on it there are now better ways to do things.

What's the alternative way to handle this then? Simply commenting out window_control_placeholder_support.css will not work.

matru avatar Nov 30 '24 22:11 matru

Look up a "_v2" variant of whatever style you were using that required window_control_placeholder_support and simply use that.

If there isn't one then let me know.

MrOtherGuy avatar Dec 01 '24 02:12 MrOtherGuy

Look up a "_v2" variant of whatever style you were using that required window_control_placeholder_support and simply use that.

If there isn't one then let me know.

I still have the windows controls in the middle, and from inspecting further the only thing I am noticing right now that might cause the issue is hide_tabs_toolbar_osx, I see that the non-osx one was updated, but this one isn't.

matru avatar Jan 04 '25 22:01 matru

There isn't need for separate osx style anymore - just use hide_tabs_toolbar_v2.css

MrOtherGuy avatar Jan 05 '25 03:01 MrOtherGuy

perfect, thanks!

matru avatar Jan 05 '25 19:01 matru