@@ -16,7 +16,9 @@ const useStyles = makeStyles(theme => ({
1616 background : theme . palette . content . background ,
1717 width : theme . palette . content . maxWidth ,
1818 boxShadow : theme . shadows [ 1 ] ,
19- borderRadius : theme . spacing ( 0.5 )
19+ borderRadius : theme . spacing ( 0.5 ) ,
20+ paddingLeft : theme . spacing ( 2 ) ,
21+ paddingRight : theme . spacing ( 2 ) ,
2022 } ,
2123 title : {
2224 paddingTop : theme . spacing ( 5 ) ,
@@ -28,9 +30,24 @@ const useStyles = makeStyles(theme => ({
2830 textAlign : 'center' ,
2931 color : theme . palette . content . text
3032 } ,
31- postInfoButton : {
33+ divContainer : {
34+ position : 'relative' ,
35+ paddingTop : 9
36+ } ,
37+ btnBox : {
38+ position : 'absolute' ,
39+ left : '50%' ,
40+ top : 0 ,
41+ transform : 'translate(-50%, 0)' ,
42+ backgroundColor : '#fff' ,
43+ padding : '0 10px'
44+ } ,
45+ btnPostInfo : {
3246 color : theme . palette . content . text
3347 } ,
48+ icoPostInfo : {
49+ fontSize : 18
50+ } ,
3451 divider : {
3552 backgroundColor : theme . palette . content . divider
3653 } ,
@@ -75,17 +92,21 @@ export default function TextContentViewer({ onRequestEditPost }) {
7592 < Typography component = 'span' >
7693 { dayjs ( post . date ) . format ( 'YYYY-MM-DD HH:mm' ) }
7794 </ Typography >
78- < IconButton className = { classes . postInfoButton } href = { post . url } tooltip = "브라우저에서 보기" size = 'small' >
79- < OpenInBrowser />
95+ </ Box >
96+ </ Container >
97+
98+ < Container disableGutters = { false } className = { classes . divContainer } >
99+ < Box className = { classes . btnBox } >
100+ < IconButton className = { classes . btnPostInfo } href = { post . url } tooltip = "브라우저에서 보기" size = 'small' >
101+ < OpenInBrowser className = { classes . icoPostInfo } />
80102 </ IconButton >
81- < IconButton className = { classes . postInfoButton } onClick = { onRequestEditPost } tooltip = "수정하기" size = 'small' >
82- < Edit />
103+ < IconButton className = { classes . btnPostInfo } onClick = { onRequestEditPost } tooltip = "수정하기" size = 'small' >
104+ < Edit className = { classes . icoPostInfo } />
83105 </ IconButton >
84106 </ Box >
107+ < Divider className = { classes . divider } />
85108 </ Container >
86109
87- < Divider className = { classes . divider } />
88-
89110 < Container disableGutters = { true } className = { classes . contentContainer } >
90111 < div ref = { viewerContent }
91112 className = "content"
0 commit comments