Skip to content

Commit e3f3f9d

Browse files
committed
Fix note title overflow
1 parent 598f41f commit e3f3f9d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/EditorCanvas/Note.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,11 @@ export default function Note({ data, onMouseDown }) {
135135
onMouseDown={onMouseDown}
136136
>
137137
<div className="text-gray-900 select-none w-full h-full cursor-move px-3 py-2">
138-
<div className="flex justify-between">
139-
<label htmlFor={`note_${data.id}`} className="ms-5">
138+
<div className="flex justify-between gap-1 w-full">
139+
<label
140+
htmlFor={`note_${data.id}`}
141+
className="ms-5 overflow-hidden text-ellipsis"
142+
>
140143
{data.title}
141144
</label>
142145
{(hovered ||

0 commit comments

Comments
 (0)