From ad327a4a8dcaf7e65e7531dd7daeecac1ed89152 Mon Sep 17 00:00:00 2001 From: Johnny Date: Fri, 23 Jan 2026 09:11:33 +0800 Subject: [PATCH] fix: adjust compact mode styling for MemoContent component --- web/src/components/MemoContent/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/components/MemoContent/index.tsx b/web/src/components/MemoContent/index.tsx index b0f11e3c8..1aa802f38 100644 --- a/web/src/components/MemoContent/index.tsx +++ b/web/src/components/MemoContent/index.tsx @@ -40,9 +40,10 @@ const MemoContent = (props: MemoContentProps) => { ref={memoContentContainerRef} className={cn( "relative w-full max-w-full wrap-break-word text-base leading-6", - showCompactMode === "ALL" && `max-h-[${COMPACT_MODE_CONFIG.maxHeightVh}vh] overflow-hidden`, + showCompactMode === "ALL" && "overflow-hidden", contentClassName, )} + style={showCompactMode === "ALL" ? { maxHeight: `${COMPACT_MODE_CONFIG.maxHeightVh}vh` } : undefined} onMouseUp={onClick} onDoubleClick={onDoubleClick} >