Skip to content

Commit

Permalink
fix: node height changing bug caused by border (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
lihebi committed Jul 22, 2023
1 parent 4e9394c commit 46d1b0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/src/components/nodes/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,8 @@ export const CodeNode = memo<NodeProps>(function ({
background: "#eee",
borderRadius: "5px",
border: "5px solid red",
// Offset the border to prevent the node height from changing.
margin: "-5px",
textAlign: "center",
height: pod.height,
width: pod.width,
Expand Down
2 changes: 2 additions & 0 deletions ui/src/components/nodes/Rich.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,8 @@ export const RichNode = memo<Props>(function ({
background: "#eee",
borderRadius: "5px",
border: "5px solid red",
// Offset the border to prevent the node height from changing.
margin: "-5px",
textAlign: "center",
height: pod.height,
width: pod.width,
Expand Down

0 comments on commit 46d1b0e

Please sign in to comment.