fix: adjust GenericNode width to fit component wrapper (#5768)
* ✨ (GenericNode/index.tsx): add useEffect hook to dynamically adjust width of ReactFlow node element to fit component wrapper * 📝 (App.css): Update width property in .react-flow__node class to improve layout responsiveness ♻️ (GenericNode/index.tsx): Remove redundant code that manually sets width of ReactFlow node element, as it is now handled by CSS styling.
This commit is contained in:
parent
59f375b61a
commit
07b26340c0
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.react-flow__node {
|
.react-flow__node {
|
||||||
width: auto;
|
width: fit-content !important;
|
||||||
height: auto;
|
height: auto;
|
||||||
border-radius: auto;
|
border-radius: auto;
|
||||||
min-width: inherit;
|
min-width: inherit;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue