Disable ellipsis in bookmarks sidebar (etc)?

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

Disable ellipsis in bookmarks sidebar (etc)?

Post by semigeek »

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: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: Disable ellipsis in bookmarks sidebar (etc)?

Post by morat »

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/se ... eechildren
http://searchfox.org/mozilla-release/se ... s&path=css
http://searchfox.org/mozilla-release/se ... is&path=js
http://searchfox.org/mozilla-release/search?q=u2026

Intl.ellipsis
http://kb.mozillazine.org/Intl.ellipsis
User avatar
dickvl
Posts: 54145
Joined: July 18th, 2005, 3:25 am

Re: Disable ellipsis in bookmarks sidebar (etc)?

Post by dickvl »

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

Re: Disable ellipsis in bookmarks sidebar (etc)?

Post by semigeek »

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: 322
Joined: April 16th, 2014, 8:54 pm
Location: Colorado

Re: Disable ellipsis in bookmarks sidebar (etc)?

Post by semigeek »

... 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.)
Post Reply