We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7154ce0 commit ad327a4Copy full SHA for ad327a4
web/src/components/MemoContent/index.tsx
@@ -40,9 +40,10 @@ const MemoContent = (props: MemoContentProps) => {
40
ref={memoContentContainerRef}
41
className={cn(
42
"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`,
+ showCompactMode === "ALL" && "overflow-hidden",
44
contentClassName,
45
)}
46
+ style={showCompactMode === "ALL" ? { maxHeight: `${COMPACT_MODE_CONFIG.maxHeightVh}vh` } : undefined}
47
onMouseUp={onClick}
48
onDoubleClick={onDoubleClick}
49
>
0 commit comments