Skip to content

Commit 98470e4

Browse files
committed
style(image-resizer): put the resize button below the resolution input and made it responsive
1 parent 6f74d5b commit 98470e4

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

components/Tools/Image/ImageResizer/index.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const ImageResizer = (): JSX.Element => {
168168
>
169169
{({ isSubmitting }) => (
170170
<Form>
171-
<Flex alignContent="center" verticalAlign="center" my={4}>
171+
<Flex alignContent="center" verticalAlign="center" mt={4} mb={2}>
172172
<HStack lineHeight="40px">
173173
<FormControl>
174174
<Input
@@ -198,17 +198,18 @@ const ImageResizer = (): JSX.Element => {
198198
<ErrorMessage name="height" />
199199
</FormControl>
200200
</HStack>
201-
<Button
202-
ml={2}
203-
p={2}
204-
isLoading={isSubmitting}
205-
type="submit"
206-
disabled={!ogImage?.src}
207-
>
208-
Resize
209-
</Button>
210201
</Flex>
211-
<Alert status="info" mb={4} borderRadius={8}>
202+
<Button
203+
my={{ base: 2, md: 4 }}
204+
p={2}
205+
isLoading={isSubmitting}
206+
type="submit"
207+
disabled={!ogImage?.src}
208+
w={{ base: "100%", md: "auto" }}
209+
>
210+
Resize
211+
</Button>
212+
<Alert status="info" mb={4} mt={2} borderRadius={8}>
212213
<AlertIcon />
213214
Images can only be downscaled
214215
</Alert>

0 commit comments

Comments
 (0)