Skip to content

Commit 372112d

Browse files
committed
chore(ext): make diagram wrapper take screen width
1 parent 454ff79 commit 372112d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/json-table-schema-visualizer/src/components/DiagramViewer/DiagramWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const DiagramWrapper = ({ children }: DiagramWrapperProps) => {
6565
onWheel={handleZooming}
6666
width={width}
6767
height={height}
68-
style={{ backgroundColor: themeColors.bg }}
68+
style={{ width: "fit-content", backgroundColor: themeColors.bg }}
6969
>
7070
<Layer>
7171
<Group offsetX={-DIAGRAM_PADDING} offsetY={-DIAGRAM_PADDING}>

0 commit comments

Comments
 (0)