Made node description editable by clicking once and changed cursor type

This commit is contained in:
Lucas Oliveira 2024-05-30 19:49:56 -03:00
commit f5462b1f8d

View file

@ -704,14 +704,14 @@ export default function GenericNode({
) : (
<div
className={cn(
"generic-node-desc-text truncate-multiline word-break-break-word",
"generic-node-desc-text cursor-text truncate-multiline word-break-break-word",
(data.node?.description === "" ||
!data.node?.description) &&
nameEditable
? "font-light italic"
: "",
)}
onDoubleClick={(e) => {
onClick={(e) => {
setInputDescription(true);
takeSnapshot();
}}