Skip to content

Commit ad327a4

Browse files
committed
fix: adjust compact mode styling for MemoContent component
1 parent 7154ce0 commit ad327a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/src/components/MemoContent/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ const MemoContent = (props: MemoContentProps) => {
4040
ref={memoContentContainerRef}
4141
className={cn(
4242
"relative w-full max-w-full wrap-break-word text-base leading-6",
43-
showCompactMode === "ALL" && `max-h-[${COMPACT_MODE_CONFIG.maxHeightVh}vh] overflow-hidden`,
43+
showCompactMode === "ALL" && "overflow-hidden",
4444
contentClassName,
4545
)}
46+
style={showCompactMode === "ALL" ? { maxHeight: `${COMPACT_MODE_CONFIG.maxHeightVh}vh` } : undefined}
4647
onMouseUp={onClick}
4748
onDoubleClick={onDoubleClick}
4849
>

0 commit comments

Comments
 (0)