A free, self-hostable news aggregator…
Improved: Article summary. Cut the text with better CSS (#4666)
maTh117b9c115d3f
diff --git a/app/views/helpers/index/normal/entry_header.phtml b/app/views/helpers/index/normal/entry_header.phtmlindex 6968bae85..38d81f5c9 100644--- a/app/views/helpers/index/normal/entry_header.phtml+++ b/app/views/helpers/index/normal/entry_header.phtml@@ -62,9 +62,7 @@?></span><?phpendif;if ($topline_summary):- ?><div class="summary">- <?= mb_substr(strip_tags($this->entry->content()), 0, 500, 'UTF-8') ?>- </div><?php+ ?><div class="summary"><?= trim(mb_substr(strip_tags($this->entry->content()), 0, 500, 'UTF-8')) ?></div><?phpendif;?></a></li><?php if ($topline_date) { ?><li class="item date"><time datetime="<?= $this->entry->machineReadableDate() ?>"><?= $this->entry->date() ?></time> </li><?php } ?>diff --git a/p/themes/base-theme/frss.css b/p/themes/base-theme/frss.cssindex 879dcdd2c..46fffb826 100644--- a/p/themes/base-theme/frss.css+++ b/p/themes/base-theme/frss.css@@ -1204,13 +1204,14 @@ a.website:hover .favicon {}.flux .item.title .summary {- max-height: 3em;+ display: -webkit-box;color: var(--frss-font-color-grey-dark);font-size: 0.9rem;font-weight: normal;- white-space: initial;- overflow: hidden;text-overflow: ellipsis;+ -webkit-line-clamp: 2;+ -webkit-box-orient: vertical;+ white-space: break-spaces;}.flux .item.title .author {diff --git a/p/themes/base-theme/frss.rtl.css b/p/themes/base-theme/frss.rtl.cssindex 4486e7745..4d731e6f7 100644--- a/p/themes/base-theme/frss.rtl.css+++ b/p/themes/base-theme/frss.rtl.css@@ -1204,13 +1204,14 @@ a.website:hover .favicon {}.flux .item.title .summary {- max-height: 3em;+ display: -webkit-box;color: var(--frss-font-color-grey-dark);font-size: 0.9rem;font-weight: normal;- white-space: initial;- overflow: hidden;text-overflow: ellipsis;+ -webkit-line-clamp: 2;+ -webkit-box-orient: vertical;+ white-space: break-spaces;}.flux .item.title .author {