Fixed overflow at card description
This commit is contained in:
parent
82ef6bc72a
commit
eee8a4591f
2 changed files with 4 additions and 4 deletions
|
|
@ -361,7 +361,7 @@ export default function GenericNode({
|
|||
<div
|
||||
className={
|
||||
showNode
|
||||
? "generic-node-desc " +
|
||||
? "generic-node-desc overflow-hidden " +
|
||||
(data.node?.description !== "" ? "py-5" : "pb-5")
|
||||
: ""
|
||||
}
|
||||
|
|
@ -403,7 +403,7 @@ export default function GenericNode({
|
|||
/>
|
||||
) : (
|
||||
<div
|
||||
className="generic-node-desc-text break-all"
|
||||
className="generic-node-desc-text truncate-multiline word-break-break-word"
|
||||
onDoubleClick={() => {
|
||||
setInputDescription(true);
|
||||
takeSnapshot();
|
||||
|
|
|
|||
|
|
@ -311,10 +311,10 @@
|
|||
@apply hover:text-accent-foreground hover:transition-all;
|
||||
}
|
||||
.generic-node-desc {
|
||||
@apply h-full w-full text-foreground;
|
||||
@apply h-full w-full text-foreground;
|
||||
}
|
||||
.generic-node-desc-text {
|
||||
@apply w-full px-5 pb-3 text-sm text-muted-foreground;
|
||||
@apply w-full px-5 mb-4 text-sm text-muted-foreground;
|
||||
}
|
||||
|
||||
.alert-icon {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue