mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-19 14:09:31 +02:00
chore: responsive improvements
This commit is contained in:
@@ -241,7 +241,7 @@ export default async function makeTool(
|
|||||||
{calcData.presets?.map((preset) => (
|
{calcData.presets?.map((preset) => (
|
||||||
<Grid item xs={12} key={preset.title}>
|
<Grid item xs={12} key={preset.title}>
|
||||||
<Stack
|
<Stack
|
||||||
direction={'row'}
|
direction={{ xs: 'column', md: 'row' }}
|
||||||
spacing={2}
|
spacing={2}
|
||||||
alignItems={'center'}
|
alignItems={'center'}
|
||||||
justifyContent={'space-between'}
|
justifyContent={'space-between'}
|
||||||
@@ -255,7 +255,7 @@ export default async function makeTool(
|
|||||||
'<custom>',
|
'<custom>',
|
||||||
...Object.keys(preset.source.data).sort()
|
...Object.keys(preset.source.data).sort()
|
||||||
]}
|
]}
|
||||||
sx={{ width: 300 }}
|
sx={{ width: '80%' }}
|
||||||
onChange={(event, newValue) => {
|
onChange={(event, newValue) => {
|
||||||
handleSelectedPresetChange(
|
handleSelectedPresetChange(
|
||||||
preset.title,
|
preset.title,
|
||||||
@@ -343,7 +343,7 @@ export default async function makeTool(
|
|||||||
spacing={2}
|
spacing={2}
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
>
|
>
|
||||||
<Typography sx={{ minWidth: 120 }}>
|
<Typography sx={{ minWidth: '8%' }}>
|
||||||
{alt.title}
|
{alt.title}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Box sx={{ flexGrow: 1 }}>
|
<Box sx={{ flexGrow: 1 }}>
|
||||||
|
Reference in New Issue
Block a user