ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: DeadMan on January 22, 2023, 05:01:39 pm

Title: Last post on board index
Post by: DeadMan on January 22, 2023, 05:01:39 pm
I had just noticed this and was not sure if would be system bug, or theme bug.
When viewing the board index, the last post for the boards gets cut off.
Now, that's normal, unless it's supposed to go to another line and finish, but when do cut off, I notice it has the typical the ...'s.
However, if a word is cut off, it won't do the ... but cuts off at the end.
If look at the screenshot, you'll see what I mean.

(Link-10229)
Title: Re: Last post on board index
Post by: Spuds on January 22, 2023, 06:44:45 pm
It is supposed to cut/break , as opposed to line wrapping.  Wrapping the text would make a real mess of the layout.

That said it should show the ... (ellipsis) when it has to break that line (unless the short subject would overflow, in which case its just clipped).  Not sure what is going on there, something to more to look at !
Title: Re: Last post on board index
Post by: Steeley on January 22, 2023, 11:25:32 pm
Quote from: Spuds – It is supposed to cut/break , as opposed to line wrapping.  Wrapping the text would make a real mess of the layout.

That said it should show the ... (ellipsis) when it has to break that line (unless the short subject would overflow, in which case its just clipped).  Not sure what is going on there, something to more to look at !

I noticed that the presence (or not) of the elipsis depends on the width of the viewing window..  if I make the viewing window wider (or narrower) it comes and goes  (i.e., make it wider they appear, or disappear, continuing making it wider and they reappear or disappear again. It's like the window size changes in pixel increments but the "elipsis display" calculation is in, oh, say, 10 pixel increments.
Title: Re: Last post on board index
Post by: DeadMan on January 23, 2023, 05:24:46 am
It does appear that it misses only when it cuts off a word in the middle.
Is it set to a certain character count?
I'm not sure if it's possible to force it to cut off before the next word if the word would go over the character count.
Title: Re: Last post on board index
Post by: Steeley on January 23, 2023, 02:59:03 pm
Quote from: Burke_Knight – It does appear that it misses only when it cuts off a word in the middle.
Is it set to a certain character count?
I'm not sure if it's possible to force it to cut off before the next word if the word would go over the character count.

It's bad enough being compelled to construct html pages server side based on what client browser is being used and its features and limitations , but then also having to know what font and font size, window size, etc.  the client browser is set to is crazy. At some point the server is just going to send the template to the client and say "here is the content,  YOU make it look right". 🤣🤣
Title: Re: Last post on board index
Post by: Spuds on February 27, 2023, 12:23:35 pm
Made a tweak to add the ellipsis when it has to cut the line ... it should look better now.