Skip to content

Commit

Permalink
[PwaAppBar] Adjust button sizes and spacing for mobile layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
cvanem committed Nov 20, 2024
1 parent 84791cf commit 6ca9d64
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/pwa/PwaAppBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,32 @@ export default function PwaAppBar({
}) {
const setRef = useAppBarHeightSetRef();
return (
<Grid ref={setRef} container justifyContent='space-between' alignItems='center' spacing={1}>
<Grid ref={setRef} container justifyContent='space-between' alignItems='center' spacing={0.75}>
<Grid item sx={{ textAlign: 'center' }}>
<PwaLogo />
</Grid>
<Grid item>
<Grid container justifyContent='flex-end' spacing={1}>
<Grid container justifyContent='flex-end' spacing={0.75}>
{!hideSearch && (
<Grid item>
<Button variant='contained' size={navButtonSize} onClick={handleSearch} disabled={disableSearch} sx={{ px: 0 }}>
<Button variant='contained' size={navButtonSize} onClick={handleSearch} disabled={disableSearch} sx={{ px: 0, minWidth: 56 }}>
Search
</Button>
</Grid>
)}
<Grid item>
<Button variant='contained' size={navButtonSize} onClick={handleReset} sx={{ px: 0 }}>
<Button variant='contained' size={navButtonSize} onClick={handleReset} sx={{ px: 0, minWidth: 56 }}>
Reset
</Button>
</Grid>
<Grid item>
<Button variant='contained' size={navButtonSize} onClick={handleBack} disabled={disableBack} sx={{ px: 0 }}>
<Button variant='contained' size={navButtonSize} onClick={handleBack} disabled={disableBack} sx={{ px: 0, minWidth: 56 }}>
Back
</Button>
</Grid>
{!hideNext && (
<Grid item>
<Button variant='contained' size={navButtonSize} onClick={handleNext} disabled={disableNext} sx={{ px: 0 }}>
<Button variant='contained' size={navButtonSize} onClick={handleNext} disabled={disableNext} sx={{ px: 0, minWidth: 56 }}>
Next
</Button>
</Grid>
Expand Down

0 comments on commit 6ca9d64

Please sign in to comment.