From b172f592045c87f1f139b817d4db29981425863d Mon Sep 17 00:00:00 2001 From: "Evgeny @ SimpleX Chat" <259188159+evgeny-simplex@users.noreply.github.com> Date: Tue, 2 Jun 2026 20:26:22 +0000 Subject: [PATCH] read more --- website/src/js/channel-preview.jsc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/js/channel-preview.jsc b/website/src/js/channel-preview.jsc index 5f93683b78..3297d8f519 100644 --- a/website/src/js/channel-preview.jsc +++ b/website/src/js/channel-preview.jsc @@ -1030,9 +1030,9 @@ function renderMobileConversion(container, channelLink, showAppBadges) { function setupExpandCollapse(section, readMore) { if (section._measured) return; const lineHeight = parseFloat(getComputedStyle(section).lineHeight); - if (!lineHeight) return; + if (!lineHeight || !section.scrollHeight) return; section._measured = true; - const maxLines = 7; + const maxLines = 4; const maxHeight = maxLines * lineHeight; const maxHeightPx = maxHeight + 'px'; section.style.maxHeight = maxHeightPx;