summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-30 21:05:26 +0100
committerAndrew Dolgov <[email protected]>2005-12-30 21:05:26 +0100
commit070d0d2a2ef8b8f1c6e1b646fa7f578733d366d7 (patch)
tree0fc2825e9eb21646f2d4fd7a7218f017905615cb
parent1e18cf4b5a9cb96bd8edc78f0cbe098e6b8a1d28 (diff)
remove headlines overflow hack, made truncate_string() utf-8 aware
-rw-r--r--backend.php2
-rw-r--r--functions.php4
-rw-r--r--tt-rss.css4
3 files changed, 5 insertions, 5 deletions
diff --git a/backend.php b/backend.php
index 3578871e6..4b3514254 100644
--- a/backend.php
+++ b/backend.php
@@ -1373,7 +1373,7 @@
if (get_pref($link, 'SHOW_CONTENT_PREVIEW')) {
$content_preview = truncate_string(strip_tags($line["content_preview"]),
- 200);
+ 100);
}
if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
diff --git a/functions.php b/functions.php
index de5eb8a2e..f40ce7618 100644
--- a/functions.php
+++ b/functions.php
@@ -821,8 +821,8 @@
}
function truncate_string($str, $max_len) {
- if (strlen($str) > $max_len) {
- return substr($str, 0, $max_len) . "...";
+ if (mb_strlen($str) > $max_len - 3) {
+ return mb_substr($str, 0, $max_len) . "...";
} else {
return $str;
}
diff --git a/tt-rss.css b/tt-rss.css
index 092bbc7f2..39b52fd04 100644
--- a/tt-rss.css
+++ b/tt-rss.css
@@ -839,11 +839,11 @@ div.postHeader td.postDate {
display : none;
}
-td.hlContent {
+/*td.hlContent {
overflow : hidden;
height : 1em;
display : block;
-}
+} */
td.hlMarkedPic, td.hlSelectRow, td.hlUpdated, td.hlFeed {
height : 1em;