Fix note title overflow

This commit is contained in:
1ilit 2024-04-14 10:26:31 +03:00
parent 598f41fed2
commit e3f3f9d5bd

View File

@ -135,8 +135,11 @@ export default function Note({ data, onMouseDown }) {
onMouseDown={onMouseDown}
>
<div className="text-gray-900 select-none w-full h-full cursor-move px-3 py-2">
<div className="flex justify-between">
<label htmlFor={`note_${data.id}`} className="ms-5">
<div className="flex justify-between gap-1 w-full">
<label
htmlFor={`note_${data.id}`}
className="ms-5 overflow-hidden text-ellipsis"
>
{data.title}
</label>
{(hovered ||