TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: Satellite on September 21, 2006, 04:16:43 PM

Title: Long text in posts break page layout
Post by: Satellite on September 21, 2006, 04:16:43 PM
As usual: TP 0.9.5 + SMF 1.1RC3 + Aero/Terra

If the frontpage is set up to displays posts from some boards, and posts contain long text (such as URLs), such text make the block unusually wide and break up page lay out.

Most of the time the horizontal scrollbar is not displayed, so the page looks like it is truncated (but you can scroll to the right bar using the arrow keys)
Title: Re: Long text in posts break page layout
Post by: Satellite on September 21, 2006, 04:39:37 PM
More info: this issue appears on Firefox, but not in IE.

IE splits the URL at the first "?" character, while Firefox displays the link on one row. It would be useful to have a horizontal scrollbar to handle this situation as the post viewer already has.
Title: Re: Long text in posts break page layout
Post by: SleePy on September 24, 2006, 12:16:53 AM
I had same issue...
Fixed it though...


Find This:

// render the text
echo '
<div style="_height: 1%; ' , (isset($story['options']['author']) || isset($story['options']['rating']) || isset($story['options']['date']) || $story['is_boardnews']) ? ' margin-top: 1ex;' : '' , '">';


Replace:

// render the text
echo '
<div style="_height: 1%; overflow: auto; ' , (isset($story['options']['author']) || isset($story['options']['rating']) || isset($story['options']['date']) || $story['is_boardnews']) ? ' margin-top: 1ex;' : '' , '">';


The div tag needed overflow setup to allow it to display correctly.
Title: Re: Long text in posts break page layout
Post by: Satellite on September 25, 2006, 02:02:12 PM
Thanks sleepy!  :up: :up: :up:

I wonder whether this quick change will be integrated in the standard TP distribution, that would be great :)
Title: Re: Long text in posts break page layout
Post by: bloc on September 25, 2006, 11:20:21 PM
It will. Added to TP 0.9.6. :)