read more

This commit is contained in:
Evgeny @ SimpleX Chat
2026-06-02 20:26:22 +00:00
parent 3592f77339
commit b172f59204
+2 -2
View File
@@ -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;