MozillaZine


Disable ellipsis in bookmarks sidebar (etc)?

User Help for Mozilla Firefox
semigeek
 
Posts: 245
Joined: April 16th, 2014, 8:54 pm
Location: Colorado

Post Posted September 26th, 2022, 9:06 pm

I'd like to remove ellipses in the bookmarks sidebar (because they seem to me to waste space) and just let overflowing items be truncated at the scrollbar. Can this be done with css? I've done something similar with fadeout in tab titles using mask-image:none, but I can't see what's going on internally with treechildren.

morat
 
Posts: 5351
Joined: February 3rd, 2009, 6:29 pm

Post Posted September 27th, 2022, 5:54 am

I don't think so.

I couldn't get the following entries to work.

Code: Select all
.sidebar-placesTreechildren::-moz-tree-cell-text {
  text-overflow: clip !important;
}

*|* {
  -moz-appearance: none !important;
  text-decoration: underline red !important;
  text-overflow: clip !important;
}

CSS text-overflow
http://developer.mozilla.org/docs/Web/CSS/text-overflow

Reference
http://searchfox.org/mozilla-release/search?q=sidebar-placesTreechildren
http://searchfox.org/mozilla-release/search?q=ellipsis&path=css
http://searchfox.org/mozilla-release/search?q=ellipsis&path=js
http://searchfox.org/mozilla-release/search?q=u2026

Intl.ellipsis
http://kb.mozillazine.org/Intl.ellipsis

dickvl

User avatar
 
Posts: 53810
Joined: July 18th, 2005, 3:25 am

Post Posted September 27th, 2022, 2:57 pm


semigeek
 
Posts: 245
Joined: April 16th, 2014, 8:54 pm
Location: Colorado

Post Posted September 28th, 2022, 7:55 am

morat wrote:I don't think so.

I couldn't get the following entries to work.

Well that's odd, because this code works:

.sidebar-placesTreechildren::-moz-tree-cell-text {opacity: .5 !important;}

So that's the right ID; perhaps the ellipsis here isn't being produced by the css text-overflow property?


I think this has to do with a different "ellipsis" issue, what the Unicode character is, how it's used to abbreviate URLs etc, what character sets it doesn't display properly in (Japanese!) and so on. Searching for "ellipsis" turns up all that too.

semigeek
 
Posts: 245
Joined: April 16th, 2014, 8:54 pm
Location: Colorado

Post Posted September 28th, 2022, 8:50 pm

... I gave up on this approach and found a simple workaround instead that just gets the ellipses out of view, showing another character or two instead right up to the scrollbar, as I wanted.

Code: Select all
.sidebar-placesTreechildren::-moz-tree-cell-text {margin-right: -20px !important;}

(Note: at some point I read that years ago Firefox lagged in supporting the text-overflow property, so the treechildren code may initially have had to produce the effect in some other way, and never have been changed.)

Return to Firefox Support


Who is online

Users browsing this forum: No registered users and 3 guests