Skip to content

Commit

Permalink
adjust svgdisplay components
Browse files Browse the repository at this point in the history
  • Loading branch information
yoonieaj committed Sep 11, 2024
1 parent fc92c06 commit 9f41242
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions demo/src/SvgDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,21 @@ export default function SvgDisplay(props: SvgDisplayPropTypes) {
<Paper
sx={{
height: 500,
// overflow: "hidden",
overflow: "hidden",
display: "flex",
justifyContent: "center",
alignItems: "center",
}}
variant="outlined"
>
{/* <div style={{ height: 500, width: "110%", display: "flex",
justifyContent: "center",
alignItems: "center" }}> */}
<TransformWrapper
minScale={0.2}
wheel={{ step: 0.2, smoothStep: 0.01 }}
>
<TransformComponent>
<canvas
style={{
height: 500,
height: "100%",
width: "100%",
}}
data-testid="memory-models-canvas"
Expand All @@ -61,7 +58,6 @@ export default function SvgDisplay(props: SvgDisplayPropTypes) {
/>
</TransformComponent>
</TransformWrapper>
{/* </div> */}
</Paper>
);
}
Expand Down

0 comments on commit 9f41242

Please sign in to comment.