Refactor: Remove description space whem node does not have a space

This commit is contained in:
igorrCarvalho 2023-09-08 17:42:57 -03:00
commit c21583e13b
2 changed files with 2 additions and 2 deletions

View file

@ -158,7 +158,7 @@ export default function GenericNode({
</div> </div>
</div> </div>
<div className="generic-node-desc"> <div className={"generic-node-desc " + (data.node?.description !== "" ? "py-5" : "pb-5")}>
{data.node?.description !== "" && ( {data.node?.description !== "" && (
<div className="generic-node-desc-text">{data.node?.description}</div> <div className="generic-node-desc-text">{data.node?.description}</div>
)} )}

View file

@ -303,7 +303,7 @@
@apply hover:text-accent-foreground hover:transition-all; @apply hover:text-accent-foreground hover:transition-all;
} }
.generic-node-desc { .generic-node-desc {
@apply h-full w-full py-5 text-foreground; @apply h-full w-full text-foreground;
} }
.generic-node-desc-text { .generic-node-desc-text {
@apply w-full px-5 pb-3 text-sm text-muted-foreground; @apply w-full px-5 pb-3 text-sm text-muted-foreground;