Skip to content

Commit

Permalink
fix button layout at bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
yoonieaj committed Aug 12, 2024
1 parent 96e559a commit 334afad
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions demo/src/MemoryModelsUserInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
AccordionDetails,
AccordionSummary,
Button,
Box,
Card,
CardContent,
Checkbox,
Expand Down Expand Up @@ -206,22 +207,27 @@ export default function MemoryModelsUserInput(
setTextData={props.setTextData}
/>
<Tooltip title="Input JSON to draw diagram">
<span>
<Box
sx={{
display: "flex",
justifyContent: "space-between",
}}
>
<DownloadJSONButton
jsonResult={props.jsonResult}
sx={{ width: "33.33%" }}
sx={{ width: "40%" }}
/>
<Button
type="submit"
data-testid="input-submit-button"
variant="contained"
color="primary"
disabled={!props.textData}
style={{ textTransform: "none" }}
style={{ width: "auto", textTransform: "none" }}
>
Draw Diagram
</Button>
</span>
</Box>
</Tooltip>
</form>
);
Expand Down

0 comments on commit 334afad

Please sign in to comment.