View previous topic :: View next topic |
Author |
Message |
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2191
|
Posted: Thu Sep 14, 2017 9:42 am Post subject: bug - Forum display width started exceeding screen |
|
|
I've noticed this every so often, and then it goes away, so I don't bother to kick up a fuss. But I think I've guessed what's happening.
The issue is gentoo forum displays start being wider than my laptop's screen, so I have to scroll right to get the right hand margin and ends of sentences. (This isn't the problem where somehow lines don't get wrapped on certain posts. In those cases I've had to scroll right several times to read all the line. I assume it's some niggle in the post contents. I'm talking about a small excess, about 25 characters and thread- not post-related.) My laptop has a small screen, 1024x600.
It's currently happening on the politics of systemd - part 3 thread. My hypothesis is it starts when the number of pages exceeds 9, causing some width calculation to double-count the digits in the "Go to page" navigator at the top and bottom. That would explain why it's not a problem on most forums, After a while, it will go away because the forum gets split according to the rules, and the new "systemd - part 4" will have less than 10 pages, for a whlle, at least _________________ Greybeard |
|
Back to top |
|
|
Akkara Bodhisattva
Joined: 28 Mar 2006 Posts: 6702 Location: &akkara
|
Posted: Thu Sep 14, 2017 10:00 am Post subject: |
|
|
This usually happens because there's a long "word" (a string characters with no whitespace in them) that can't be word-wrapped properly. Emerge errors often contain these and so you'll find those kinds of threads tend to have this problem.
What pages on that thread are you having trouble with? All of them? Or just some of them? Currently, the only thing that stands out to me is there's a user whose signature contains such a long "word", and this might not be fitting in your screen width. Does this correlate with your experience? _________________ Many think that Dilbert is a comic. Unfortunately it is a documentary. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54663 Location: 56N 3W
|
Posted: Thu Sep 14, 2017 10:15 am Post subject: |
|
|
Goverp,
To add to what Akkara said, the forum mods often fix these long lines but its a manual job.
Newer firefox seems to wrap these lines anyway, so I don't see as many as I used to :)
Feel free to report these threads. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Thu Sep 14, 2017 7:16 pm Post subject: |
|
|
Chromium is still really bad at word-wrapping (but not just on this site). Putting this in a user CSS makes things much better:
Code: | .code { word-break: break-word } |
|
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2191
|
Posted: Sat Sep 16, 2017 9:44 am Post subject: |
|
|
Akkara, thanks you're right, there's a user with a long "word" in his sig that appears on every page but 8 of the relevant thread, and page 8 does format correctly.
Ant P. Thanks, but I'm not a Chromium user - Opera or konqueror (which seems to be alive-ish! with a WebEngine backend). Both show the problem. _________________ Greybeard |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2745 Location: Here and Away Again
|
Posted: Sat Sep 16, 2017 3:02 pm Post subject: ><)))°€ |
|
|
I had been meaning to discuss the signature with said user for quite a while now, but since it wasn't that big of an issue, I never got to it.
Since there is an actual topic about it now, I have initiated a conversation towards a swift-like solution.
Thank you for reminding me about it! :] _________________ Kindest of regardses. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3818 Location: Rasi, Finland
|
Posted: Sat Sep 16, 2017 8:49 pm Post subject: |
|
|
Hi all.
I've changed my sig now. I didn't saw it breaking the layout on firefox... Although I use to keep my own custom zoom and font settings that might affect the behaviour.
I'll try to remember this next time I plan to change my sig.
Thanks. And sorry for all the broken layouts. ;) _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3477
|
Posted: Sat Sep 16, 2017 10:03 pm Post subject: |
|
|
Goverp wrote: | Akkara, thanks you're right, there's a user with a long "word" in his sig that appears on every page but 8 of the relevant thread, and page 8 does format correctly. |
Never noticed that. Makes me wonder what the result actually was... And how could it happen that only pages with some specific number were affected. |
|
Back to top |
|
|
Akkara Bodhisattva
Joined: 28 Mar 2006 Posts: 6702 Location: &akkara
|
Posted: Sat Sep 16, 2017 10:49 pm Post subject: |
|
|
szatox wrote: | Makes me wonder what the result actually was... And how could it happen that only pages with some specific number were affected. |
Those were the pages containing posts with long words. It has nothing to do with page numbers, and everything to do with whether posts on the page in question contains long words (whatever their source, whether signature or in the post text itself). _________________ Many think that Dilbert is a comic. Unfortunately it is a documentary. |
|
Back to top |
|
|
Section_8 l33t
Joined: 22 May 2004 Posts: 627
|
Posted: Sun Sep 17, 2017 3:09 am Post subject: |
|
|
My workaround for that is a button in the firefox bookmark toolbar with this code as the URL:
Code: | javascript:(function(){var%20D=document;F(D.body);function%20F(n){var%20u,r,c,x;if(n.nodeType==3){u=n.data.search(/\S{45}/);if(u>=0){r=n.splitText(u+45);n.parentNode.insertBefore(D.createElement('wbr'),r);}}else%20if((n.tagName!='STYLE')&&(n.tagName!='SCRIPT')){for(c=0;x=n.childNodes[c];++c){F(x);}}}D.body.innerHTML+='%20';})(); |
I think I got this from this forum years ago. |
|
Back to top |
|
|
|