aminomancer / uc.css.js

A dark indigo CSS theme for Firefox and a large collection of privileged scripts to add new buttons, menus, and behaviors and eliminate nuisances. The theme is similar to other userChrome stylesheets, but it's intended for use with an autoconfig loader like fx-autoconfig, since it uses JavaScript to implement its more functional features.
Other
326 stars 27 forks source link

Firefox 108 breaking "Tab Thumbnail ToolTip" script on pages with page title too long? #62

Closed ericpa06 closed 1 year ago

ericpa06 commented 1 year ago

Hello, I just updated Firefox Developer to the 108 version, and Mozilla seems to have made some change that break the script. Especially when the page title is too long. image_215

It seems to be some issue with #tabThumbBox part, I tried to fix by tweaking around with CSS, but hadn't have much success. It could something due to my setup, but I think it is worth a look. Thank you very much for your attention

Update: Forget what I said about "tabThumbBox", I think the problem is the model "Max label character limit" isn't working, so it doesn't crop the page title when seeing the thumbnail,

kaos-55 commented 1 year ago

I can confirm this, not only the script is broken in the developer version but also in nightly. Apparently a change in Firefox makes that the "Max label character limit" is not respected, also the thumbnail of the tab is out of the canvas. github-isssue

aminomancer commented 1 year ago

It's likely because of the xul modern flexbox emulation improvements. The change has affected several of my scripts unfortunately. I've been pretty busy, but I will get around to it eventually.

kaos-55 commented 1 year ago

Thanks for the explanation, we will wait for it to be fixed. Take your time. 👍

kaos-55 commented 1 year ago

After several months of trying to fix the script myself, through trial and error, I think I was able to fix the script.

Before the fix: no-fixed

After the fix: fixed

Although I still don't know how to fix the ellipsis, since it changes me to this character "&". I fixed it temporarily by using three dots. I leave this in case anyone is interested.

aminomancer commented 1 year ago

Thanks, I fixed it. Sorry, I didn't realize turning the overflow character setting into a pref would change its encoding.

I fixed the layout issue too. It is resolved by putting the label in another container and constraining the container's width.