From 7c952a1e063a3b2e0aec784b8e65067af9cb3dcc Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Tue, 15 Sep 2020 11:03:37 -0500 Subject: [PATCH] Fixed issue with truncated group info description on desktop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Fixed: - issue with truncated group info description on desktop --- app/javascript/gabsocial/components/panel/group_info_panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/gabsocial/components/panel/group_info_panel.js b/app/javascript/gabsocial/components/panel/group_info_panel.js index dbff1323..8c271092 100644 --- a/app/javascript/gabsocial/components/panel/group_info_panel.js +++ b/app/javascript/gabsocial/components/panel/group_info_panel.js @@ -52,7 +52,7 @@ class GroupInfoPanel extends ImmutablePureComponent { const tags = !!group ? group.get('tags') : [] const groupCategory = !!group ? group.getIn(['group_category', 'text'], null) : null - const collapsable = !!group ? `${group.get('description')}`.length > 500 : false + const collapsable = !!group ? `${group.get('description')}`.length > 500 && noPanel : false let des = '' if (!!group) des = collapsable && !descriptionOpen ? `${group.get('description_html')}`.substring(0, 500) : group.get('description_html') const descriptionHTML = !!group ? { __html: des } : {}