Skip to content

Commit

Permalink
remove lots of styling
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahsonder committed Aug 15, 2024
1 parent 5097277 commit bd64324
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 21 deletions.
4 changes: 2 additions & 2 deletions demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function App() {
)}
<Stack direction="row" spacing={2}>
<Box sx={{ width: "40%" }}>
<h2 style={{ marginBottom: "1rem" }}>Input</h2>
<h2>Input</h2>
<MemoryModelsUserInput
textData={textData}
setTextData={setTextData}
Expand All @@ -55,7 +55,7 @@ export default function App() {
/>
</Box>
<Box sx={{ width: "60%" }}>
<h2 style={{ marginBottom: "1rem" }}>Output</h2>
<h2>Output</h2>
<ErrorBoundary
fallback={
<p data-testid="svg-display-error-boundary">
Expand Down
2 changes: 1 addition & 1 deletion demo/src/DownloadJSONButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function DownloadJSONButton(props: DownloadJSONButtonPropTypes) {
target="_blank"
rel="noreferrer"
href={window.URL.createObjectURL(file)}
sx={{ ...props.sx, textTransform: "none", textAlign: "center" }}
sx={{ ...props.sx, textTransform: "none" }}
>
Download JSON
</Button>
Expand Down
1 change: 0 additions & 1 deletion demo/src/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export default function Header() {
src={image}
alt="MemoryViz Logo"
style={{
marginRight: "1rem",
width: "12%",
}}
/>
Expand Down
12 changes: 1 addition & 11 deletions demo/src/MemoryModelsUserInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function MemoryModelsFileInput(props: MemoryModelsFileInputPropTypes) {
variant="contained"
disabled={!uploadedFileString}
onClick={onLoadButtonClick}
sx={{ width: "auto", textTransform: "none" }}
sx={{ textTransform: "none" }}
>
Load file data
</Button>
Expand All @@ -108,11 +108,6 @@ function MemoryModelsTextInput(props: MemoryModelsTextInputPropTypes) {
variant="outlined"
value={props.textData}
onChange={handleTextFieldChange}
style={{
width: "100%",
height: "80%",
fontFamily: "Monospace",
}}
/>
);
}
Expand Down Expand Up @@ -161,10 +156,6 @@ function MemoryModelsConfigInput(props: MemoryModelsConfigInputPropTypes) {
"data-testid": "config-seed",
},
}}
sx={{
width: "50%",
"& .MuiInputBase-input": { height: "10%" },
}}
/>
</MenuItem>
<MenuItem>
Expand All @@ -176,7 +167,6 @@ function MemoryModelsConfigInput(props: MemoryModelsConfigInputPropTypes) {
/>
}
label="Use automatic layout"
sx={{ width: "50%" }}
/>
</MenuItem>
</>
Expand Down
3 changes: 0 additions & 3 deletions demo/src/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
#root {
padding: 1rem;
}
3 changes: 0 additions & 3 deletions demo/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ const theme = createTheme({
light: "#72ac56",
},
},
typography: {
fontFamily: "Open Sans, Arial, sans-serif",
},
});

const root = createRoot(document.getElementById("root"));
Expand Down

0 comments on commit bd64324

Please sign in to comment.