Skip to content

Commit

Permalink
Merge pull request #319 from giselles-ai/fix/node-name-editing-after-…
Browse files Browse the repository at this point in the history
…deletion

fix: Add background color to empty node name section for better visibility
  • Loading branch information
gentamura authored Jan 22, 2025
2 parents 1564f0c + 61d0789 commit 0d1d1cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/components/node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ function NodeNameEditable({
) : (
<button
type="button"
className="flex items-center gap-[12px] cursor-auto"
className={clsx(
"flex items-center gap-[12px] cursor-auto min-w-[120px]",
name.length === 0 && "min-h-[18px] bg-black-80/80",
)}
onClick={(event) => {
event.stopPropagation();
}}
Expand Down

0 comments on commit 0d1d1cf

Please sign in to comment.