TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 90
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 80
  • Total: 80

Long text in posts break page layout

Started by Satellite, September 21, 2006, 04:16:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Satellite

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)

Satellite

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.

SleePy

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.

Satellite

Thanks sleepy!  :up: :up: :up:

I wonder whether this quick change will be integrated in the standard TP distribution, that would be great :)

bloc


This website is proudly hosted on Crocweb Cloud Website Hosting.