Skip to content

Commit 7894f70

Browse files
committed
fix text display
1 parent 1f2e50d commit 7894f70

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

‎frontend/src/feature/note/component/NoteCardComponent/NoteCardComponent.tsx‎

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,6 @@ const NoteCardComponent = (props: Props) => {
8383
"flex flex-col justify-between items-start gap-2",
8484
"overflow-hidden",
8585
)}>
86-
{/* <div className="flex justify-end w-full">
87-
<Button
88-
className={cn("hover:text-primary-600", note.pinned && "text-primary-600")}
89-
variant={"outline"}
90-
onClick={(e) => {
91-
e.preventDefault()
92-
onTogglePin(note)
93-
}}
94-
aria-label={note.pinned ? "Unpin note" : "Pin note"}
95-
size={"sm"}
96-
>
97-
{note.pinned ? <PinOff /> : <Pin />}
98-
</Button>
99-
</div> */}
10086
<div className={cn(
10187
"tiptap",
10288
"prose-sm",
@@ -106,6 +92,14 @@ const NoteCardComponent = (props: Props) => {
10692
"removed-xl:prose-2xl",
10793
"removed-prose-foreground",
10894
"line-clamp-3",
95+
"tiptap",
96+
"prose",
97+
// "prose-foreground",
98+
// "removed-prose-sm ",
99+
// "removed-sm:prose-base ",
100+
// " removed-lg:prose-lg",
101+
// " removed-xl:prose-2xl",
102+
// "transition-transform duration-300 ease-out",
109103
)}> {/* IMPORTANT */}
110104
<div dangerouslySetInnerHTML={{ __html: sanitizeHTML(note.text) }}></div>
111105
</div>
@@ -141,7 +135,7 @@ const NoteCardComponent = (props: Props) => {
141135

142136
<Button
143137
className={cn(
144-
"hover:text-primary focus:text-primary active:text-primary",
138+
"hover:text-primary focus:text-primary active:text-primary",
145139
note.pinned && "text-primary")
146140
}
147141
variant={"outline"}

0 commit comments

Comments
 (0)