Refactor: Remove description space whem node does not have a space
This commit is contained in:
parent
5cae58dead
commit
c21583e13b
2 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue