mirror of https://github.com/usememos/memos.git
fix: adjust compact mode styling for MemoContent component
This commit is contained in:
parent
7154ce0228
commit
ad327a4a8d
|
|
@ -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}
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in New Issue