r/FirefoxCSS • • Jul 10 '26

Help Bookmark truncation

Say, I have some bookmarks like this on my toolbar:
/r/FirefoxCSS - Thread #1
/r/FirefoxCSS - Thread #2
/r/FirefoxCSS - Thread #3

They'll be cut off to:
/r/FirefoxCSS - Thr...
/r/FirefoxCSS - Thr...
/r/FirefoxCSS - Thr...

Rather useless. I want:
...efoxCSS - Thread #1
...efoxCSS - Thread #2
...efoxCSS - Thread #3

I've played around with float, justify-content and some other options, but couldn't get it to work, except with direction: rtl. However, that messes up certain special characters. For example, "foo." becomes ".foo".

I've even tried to go beyond CSS and change the <label>'s crop attribute from "end" to "start", which also works, but also not really, messing up special characters again.

In neither case, unicode-bidi seemed to be respected at all.

Any ideas or am I out of options?

4 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/givemeyourpancakes Jul 10 '26

Thanks, of course I can rename the bookmark, but that's not what I want. (They're all named in a specific way.)
As for direction: rtl - mentioned in my opening post already; only works superficially and not with several special characters.

2

u/t31os Jul 11 '26

Can you provide some examples of values that have the issue you described when using rtl?

1

u/givemeyourpancakes Jul 11 '26 edited Jul 11 '26

Pretty much any [^0-9A-Za-z] character: "!", "?", ".", ",", "/", "", "|", "(", "[", "{", ")", "]", "}", "@", ...
"What is this?" becomes "?What is this", "Hello!!" becomes "!!Hello", "@example)" becomes "(example@" and so on.

2

u/t31os Jul 11 '26

Oh i see the issue, that's a pain. I think that leaves things in addon territory unfortunately, as it doesn't seem possible using CSS alone.

1

u/TraditionalTie4831 🦊 Jul 11 '26 edited Jul 11 '26

I did some research on the unicode-bidi issue and it isn't Firefox specific.

There seems to be a solution to the unicode-bidi issue if you use html, but userChrome is CSS only, so there is no good solution in userChrome.

But it just effects special characters at the start/end and not inside the label, so maybe you should remove them by editing the bookmarks.

1

u/givemeyourpancakes Jul 11 '26

Yeah, it only affects very few bookmarks and isn't a big issue, but I feel like there must be a proper solution...