File tree Expand file tree Collapse file tree 4 files changed +64
-19
lines changed Expand file tree Collapse file tree 4 files changed +64
-19
lines changed Original file line number Diff line number Diff line change 1+ .comment {
2+ & -form {
3+ margin : 16px 0px ;
4+ }
5+
6+ & -input {
7+ align-items : flex-end ;
8+ border : 1px solid $light-gray ;
9+ display : flex ;
10+ margin-bottom : 5px ;
11+ width : fit-content ;
12+
13+ textarea {
14+ border : 0 ;
15+ box-shadow : 0 0 2px 0 $dark-color inset ;
16+ resize : none ;
17+ }
18+ }
19+ }
20+
21+ .file {
22+ height : 0.1px ;
23+ opacity : 0 ;
24+ position : absolute ;
25+ width : 0.1px ;
26+
27+ & -input {
28+ background : $eos-white ;
29+ display : flex ;
30+ flex-direction : column-reverse ;
31+ height : 84px ;
32+ }
33+
34+ & -button-label {
35+ border-top : 0.2px solid $light-gray ;
36+ display : block ;
37+ height : 24px ;
38+ position : relative ;
39+ text-align : center ;
40+ width : 35px ;
41+ }
42+
43+ & -button-label :hover {
44+ cursor : pointer ;
45+ }
46+ }
Original file line number Diff line number Diff line change 2626 }
2727 }
2828}
29-
30- .comment-form {
31- margin : 16px 0px ;
32-
33- textarea {
34- resize : none ;
35- }
36- }
Original file line number Diff line number Diff line change 66@import ' dragdrop' ;
77@import ' timeline' ;
88@import ' storiesList' ;
9+ @import ' commentInput' ;
910@import ' comments' ;
1011@import ' pagination' ;
1112@import ' modal' ;
Original file line number Diff line number Diff line change @@ -45,24 +45,30 @@ const CommentInput = (props) => {
4545 className = 'comment-form'
4646 onSubmit = { handleSubmitReply ( addCommentReply ) }
4747 >
48- < div className = 'field ' >
48+ < div className = 'comment-input ' >
4949 < textarea
50- rows = '4 '
51- cols = '16 '
50+ rows = '5 '
51+ cols = '25 '
5252 name = 'Comments'
5353 ref = { registerReply ( { required : true } ) }
5454 value = { commentReply }
5555 onChange = { ( e ) => setCommentReply ( e . target . value ) }
5656 > </ textarea >
57- < input
58- type = 'file'
59- name = 'File'
60- multiple = { true }
61- onChange = { handleFileChange }
62- />
63- < div className = 'preview-container' > { mediaPreview } </ div >
64- { errorsReply . addReply && < FormError message = 'Reply cannot be empty' /> }
57+ < div className = 'file-input' >
58+ < input
59+ type = 'file'
60+ id = 'file'
61+ className = 'file'
62+ multiple = { true }
63+ onChange = { handleFileChange }
64+ />
65+ < label htmlFor = 'file' className = 'file-button-label' >
66+ < i className = 'eos-icons' > attachment</ i >
67+ </ label >
68+ </ div >
6569 </ div >
70+ < div className = 'preview-container' > { mediaPreview } </ div >
71+ { errorsReply . addReply && < FormError message = 'Reply cannot be empty' /> }
6672 < Button className = 'btn btn-default' > Add Reply</ Button >
6773 </ form >
6874 )
You can’t perform that action at this time.
0 commit comments