summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-09-15 18:07:01 +0400
committerAndrew Dolgov <[email protected]>2012-09-15 18:07:01 +0400
commitc6c010d98a7c67d00c55351b226bfaffb5dcd40d (patch)
tree4f8b309ba229761859b86e16ceccf08e1211c5ad
parent9170056c55792bab49e94f61128b769f21d34b27 (diff)
remove mandatory truncating of post title, limit width using CSS
-rw-r--r--include/functions.php6
-rw-r--r--tt-rss.css9
2 files changed, 12 insertions, 3 deletions
diff --git a/include/functions.php b/include/functions.php
index 73c2f6d50..3af4af350 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -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"];
diff --git a/tt-rss.css b/tt-rss.css
index a8286ef9a..619a03f98 100644
--- a/tt-rss.css
+++ b/tt-rss.css
@@ -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;