Refined control sizes.

This commit is contained in:
2026-01-31 15:57:37 +01:00
parent 4c964cdfeb
commit 9f0d7ee70a
3 changed files with 29 additions and 22 deletions

View File

@@ -163,6 +163,7 @@ function ApiKeyPage({
exclusive exclusive
onChange={(e, value) => value && onShellTypeChange(value)} onChange={(e, value) => value && onShellTypeChange(value)}
aria-label="shell type" aria-label="shell type"
sx={{ "& .MuiToggleButton-root": { px: 2, py: 0.5 } }}
> >
<ToggleButton value="bash">UNIX (Bash)</ToggleButton> <ToggleButton value="bash">UNIX (Bash)</ToggleButton>
<ToggleButton value="powershell">Windows (PS)</ToggleButton> <ToggleButton value="powershell">Windows (PS)</ToggleButton>

View File

@@ -25,7 +25,7 @@ function Header({ theme, onThemeChange, currentPage, onPageChange }) {
{/* Brand/Title */} {/* Brand/Title */}
<Box sx={{ display: "flex", alignItems: "center" }}> <Box sx={{ display: "flex", alignItems: "center" }}>
<Typography <Typography
variant="h6" variant="h5"
noWrap noWrap
component="div" component="div"
sx={{ sx={{

View File

@@ -216,17 +216,21 @@ function MainPage({
mb: 1, mb: 1,
flexShrink: 0, flexShrink: 0,
bgcolor: "background.paper", bgcolor: "background.paper",
p: 1.25,
border: 1, border: 1,
borderColor: "divider", borderColor: "divider",
overflow: "hidden",
}} }}
> >
<Box <Box
sx={{ sx={{
px: 2,
py: 1,
bgcolor: "action.hover",
borderBottom: 1,
borderColor: "divider",
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
justifyContent: "space-between", justifyContent: "space-between",
mb: 0.75,
}} }}
> >
<Box sx={{ display: "flex", alignItems: "center", gap: 1 }}> <Box sx={{ display: "flex", alignItems: "center", gap: 1 }}>
@@ -236,6 +240,7 @@ function MainPage({
</Typography> </Typography>
</Box> </Box>
</Box> </Box>
<Box sx={{ p: 1.5 }}>
<TextField <TextField
fullWidth fullWidth
size="small" size="small"
@@ -255,6 +260,7 @@ function MainPage({
}, },
}} }}
/> />
</Box>
</Paper> </Paper>
<Grid container spacing={3} sx={{ flex: "1 1 0", minHeight: 0, height: 0 }}> <Grid container spacing={3} sx={{ flex: "1 1 0", minHeight: 0, height: 0 }}>