remove mandatory truncating of post title, limit width using CSS

This commit is contained in:
Andrew Dolgov 2012-09-15 18:07:01 +04:00
parent 9170056c55
commit c6c010d98a
2 changed files with 12 additions and 3 deletions

View File

@ -3392,14 +3392,14 @@
$rv['content'] .= "<div class=\"postDate$rtl_class\">$parsed_updated</div>";
if ($line["link"]) {
$rv['content'] .= "<div class='postTitle' clear='both'><a target='_blank'
$rv['content'] .= "<div class='postTitle'><a target='_blank'
title=\"".htmlspecialchars($line['title'])."\"
href=\"" .
$line["link"] . "\">" .
truncate_string($line["title"], 100) .
$line["title"] .
"<span class='author'>$entry_author</span></a></div>";
} else {
$rv['content'] .= "<div class='postTitle' clear='both'>" . $line["title"] . "$entry_author</div>";
$rv['content'] .= "<div class='postTitle'>" . $line["title"] . "$entry_author</div>";
}
$tag_cache = $line["tag_cache"];

View File

@ -41,6 +41,15 @@ div.postReply div.postHeader {
color : #909090;
}
div.postReply div.postTitle {
overflow : hidden;
white-space : nowrap;
}
div.postReply div.postDate {
padding-left : 10px;
}
div.postReply div.postContent {
padding : 10px;
font-size : 12px;