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:
Cristhian Zanforlin Lousa 2025-01-17 17:27:39 -03:00 committed by GitHub
commit 07b26340c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ body {
}
.react-flow__node {
width: auto;
width: fit-content !important;
height: auto;
border-radius: auto;
min-width: inherit;