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,25 +240,27 @@ function MainPage({
</Typography> </Typography>
</Box> </Box>
</Box> </Box>
<TextField <Box sx={{ p: 1.5 }}>
fullWidth <TextField
size="small" fullWidth
placeholder="Enter JMESPath expression (e.g., people[*].name)" size="small"
value={jmespathExpression} placeholder="Enter JMESPath expression (e.g., people[*].name)"
onChange={handleJmespathChange} value={jmespathExpression}
error={!!error} onChange={handleJmespathChange}
helperText={error || " "} error={!!error}
sx={{ helperText={error || " "}
"& .MuiInputBase-root": { sx={{
fontFamily: "'Noto Sans Mono', monospace", "& .MuiInputBase-root": {
fontSize: "0.9rem", fontFamily: "'Noto Sans Mono', monospace",
}, fontSize: "0.9rem",
"& .MuiFormHelperText-root": { },
mt: 0.75, "& .MuiFormHelperText-root": {
mb: -0.5, mt: 0.75,
}, mb: -0.5,
}} },
/> }}
/>
</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 }}>