File tree Expand file tree Collapse file tree 2 files changed +19
-12
lines changed Expand file tree Collapse file tree 2 files changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,17 @@ export default class FileUploadItem extends Component {
3333 textAlign : 'center'
3434 } ;
3535
36- const fileSizeStyle = {
37- textAlign : 'right' ,
38- paddingRight : "10px"
36+ const trashContainerStyle = {
37+ display : "inline-block" ,
38+ textAlign : "left" ,
39+ paddingLeft : "10px" ,
40+ paddingBottom : "10px"
3941 } ;
4042
41- const glyphSizeStyle = {
42- textAlign : 'left' ,
43- paddingLeft : "10px" ,
43+ const fileSizeContainerStyle = {
44+ display : "inline-block" ,
45+ float : "right" ,
46+ paddingRight : "10px" ,
4447 paddingBottom : "10px"
4548 } ;
4649
@@ -63,12 +66,16 @@ export default class FileUploadItem extends Component {
6366 < Col xs = { 4 } md = { 4 } >
6467 < div style = { containerStyle } >
6568 < img height = { height } width = { width } src = { image } style = { imgStyle } />
66- < div style = { textContainerStyle } onClick = { onClick } >
69+ < div style = { textContainerStyle } >
6770 < p style = { fileNameStyle } > { filename } </ p >
68- < p style = { fileSizeStyle } >
69- < Glyphicon glyph = "trash" />
70- { " " + filesize ( file . size ) }
71- </ p >
71+ < div >
72+ < div onClick = { onClick } style = { trashContainerStyle } >
73+ < Glyphicon glyph = "trash" />
74+ </ div >
75+ < div style = { fileSizeContainerStyle } >
76+ < p > { filesize ( file . size ) } </ p >
77+ </ div >
78+ </ div >
7279 </ div >
7380 </ div >
7481 </ Col >
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export default class FileUpload extends Component {
6767
6868 if ( files ) {
6969 rowStyle = {
70- padding : "5px "
70+ padding : "15px "
7171 }
7272 }
7373
You can’t perform that action at this time.
0 commit comments