Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
GCL_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이승윤
2021-06-12 19:05:05 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
781583d87c47e1591fe92bd56f0c352242013c6c
781583d8
1 parent
c69a46b3
style: Thumbnail div 추가
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
frontend/src/components/document/Thumbnail.js
frontend/src/components/document/Thumbnail.js
View file @
781583d
import
{
Image
,
Text
}
from
'@mantine/core'
;
import
React
from
'react'
;
import
styled
from
'styled-components'
;
const
ImageWrapper
=
styled
.
div
`
display: flex;
`
;
const
Thumbnails
=
({
srcs
})
=>
{
return
(
<>
<
Text
style
=
{{
marginTop
:
'1rem'
}}
>
문서
내
이미지
<
/Text
>
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
}}
>
<
ImageWrapper
>
{
srcs
.
map
(
src
=>
(
<
Image
width
=
{
200
}
...
...
@@ -15,7 +19,7 @@ const Thumbnails = ({ srcs }) => {
withPlaceholder
/>
))}
<
/
div
>
<
/
ImageWrapper
>
<
/
>
);
};
...
...
Please
register
or
login
to post a comment