Showing
1 changed file
with
6 additions
and
2 deletions
1 | import { Image, Text } from '@mantine/core'; | 1 | import { Image, Text } from '@mantine/core'; |
2 | import React from 'react'; | 2 | import React from 'react'; |
3 | +import styled from 'styled-components'; | ||
3 | 4 | ||
5 | +const ImageWrapper = styled.div` | ||
6 | + display: flex; | ||
7 | +`; | ||
4 | const Thumbnails = ({ srcs }) => { | 8 | const Thumbnails = ({ srcs }) => { |
5 | return ( | 9 | return ( |
6 | <> | 10 | <> |
7 | <Text style={{ marginTop: '1rem' }}>문서 내 이미지</Text> | 11 | <Text style={{ marginTop: '1rem' }}>문서 내 이미지</Text> |
8 | - <div style={{ display: 'flex', justifyContent: 'space-between' }}> | 12 | + <ImageWrapper> |
9 | {srcs.map(src => ( | 13 | {srcs.map(src => ( |
10 | <Image | 14 | <Image |
11 | width={200} | 15 | width={200} |
... | @@ -15,7 +19,7 @@ const Thumbnails = ({ srcs }) => { | ... | @@ -15,7 +19,7 @@ const Thumbnails = ({ srcs }) => { |
15 | withPlaceholder | 19 | withPlaceholder |
16 | /> | 20 | /> |
17 | ))} | 21 | ))} |
18 | - </div> | 22 | + </ImageWrapper> |
19 | </> | 23 | </> |
20 | ); | 24 | ); |
21 | }; | 25 | }; | ... | ... |
-
Please register or login to post a comment