remove headlines overflow hack, made truncate_string() utf-8 aware
This commit is contained in:
parent
1e18cf4b5a
commit
070d0d2a2e
|
@ -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')) {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue