mirror of
https://github.com/usememos/memos.git
synced 2025-04-07 06:11:08 +02:00
chore: add gradient block to compact mode
This commit is contained in:
parent
7817947f66
commit
ea881338a9
@ -79,7 +79,7 @@ const MemoContent: React.FC<Props> = (props: Props) => {
|
|||||||
<div
|
<div
|
||||||
ref={memoContentContainerRef}
|
ref={memoContentContainerRef}
|
||||||
className={clsx(
|
className={clsx(
|
||||||
"w-full max-w-full word-break text-base leading-snug space-y-2 whitespace-pre-wrap",
|
"relative w-full max-w-full word-break text-base leading-snug space-y-2 whitespace-pre-wrap",
|
||||||
showCompactMode && "line-clamp-6",
|
showCompactMode && "line-clamp-6",
|
||||||
contentClassName,
|
contentClassName,
|
||||||
)}
|
)}
|
||||||
@ -96,6 +96,9 @@ const MemoContent: React.FC<Props> = (props: Props) => {
|
|||||||
skipNextLineBreakFlag = true;
|
skipNextLineBreakFlag = true;
|
||||||
return <Renderer key={`${node.type}-${index}`} index={String(index)} node={node} />;
|
return <Renderer key={`${node.type}-${index}`} index={String(index)} node={node} />;
|
||||||
})}
|
})}
|
||||||
|
{showCompactMode && (
|
||||||
|
<div className="absolute bottom-0 left-0 w-full h-12 bg-gradient-to-b from-transparent dark:to-zinc-800 to-white pointer-events-none"></div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
{showCompactMode && (
|
{showCompactMode && (
|
||||||
<div className="w-full mt-1">
|
<div className="w-full mt-1">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user