pl-fe: Fix logic

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2025-01-31 19:48:01 +01:00
parent b72e4b5d9a
commit 90c00b8588

View File

@ -97,7 +97,7 @@ const StatusContent: React.FC<IStatusContent> = React.memo(({
const maybeSetCollapsed = (): void => {
if (!node.current) return;
if ((collapsable || preview) && !collapsed) {
if (collapsable || preview) {
// 20px * x lines (+ 2px padding at the top)
setCollapsed(node.current.clientHeight >= (preview ? 82 : isQuote ? 202 : 282));
}