Skip to content

Commit

Permalink
Refine theme and app bar
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJamesC committed Sep 8, 2023
1 parent 6183bca commit d02d1ce
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion reports/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function App() {
const router = createHashRouter(nav);
return (
<CustomThemeProvider>
<RouterProvider router={router} />;
<RouterProvider router={router} />
</CustomThemeProvider>
);
}
Expand Down
7 changes: 7 additions & 0 deletions reports/src/ThemeContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ export const CustomThemeProvider = ({
? theme.palette.grey[500]
: theme.palette.grey[700];
return {
body: {
backgroundColor:
theme.palette.mode === "light"
? theme.palette.grey[100]
: theme.palette.grey[900],
},
table: {
borderCollapse: "collapse",
border: `1px solid ${borderColor}`,
Expand All @@ -69,6 +75,7 @@ export const CustomThemeProvider = ({
},
td: {
border: `1px solid ${borderColor}`,
padding: 8,
},
};
};
Expand Down
11 changes: 6 additions & 5 deletions reports/src/capability/CapabilityTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const ChildCapabilityRow = ({
{capability.name} ({capability.participant_id})
</Link>
</td>
<td style={{ padding: 8 }}>
<td>
<Chip
label={pass ? "PASS" : "FAIL"}
color={pass ? "success" : "error"}
Expand Down Expand Up @@ -254,7 +254,7 @@ export const CapabilityTable = ({ capability }: CapabilityTableProps) => {
}
return (
<>
<AppBar position="static">
<AppBar position="fixed">
<Toolbar>
<Typography variant="h6" component="div" sx={{ flexGrow: 1 }}>
InterUSS report explorer
Expand All @@ -271,10 +271,11 @@ export const CapabilityTable = ({ capability }: CapabilityTableProps) => {
theme.palette.mode === "light"
? theme.palette.grey[100]
: theme.palette.grey[900],
flexGrow: 1,
height: "100vh",
overflow: "auto",
// flexGrow: 1,
// height: "100vh",
// overflow: "auto",
padding: 8,
paddingTop: 10,
}}
>
<CapabilityBreadcrumbs />
Expand Down

0 comments on commit d02d1ce

Please sign in to comment.