Skip to content

Commit d67e400

Browse files
committed
modify: change design for model window creating new folder
1 parent 7f066c4 commit d67e400

2 files changed

Lines changed: 45 additions & 35 deletions

File tree

browser/main/modals/CreateFolderModal.js

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,24 +75,27 @@ class CreateFolderModal extends React.Component {
7575
onKeyDown={(e) => this.handleKeyDown(e)}
7676
>
7777
<div styleName='header'>
78-
<div styleName='title'>New Folder</div>
78+
<div styleName='title'>Create new folder</div>
7979
</div>
80-
<button styleName='closeButton'
81-
onClick={(e) => this.handleCloseButtonClick(e)}
82-
>Close</button>
80+
<button styleName='close' onClick={(e) => this.handleCloseButtonClick(e)}>
81+
<div styleName='close-mark'>X</div>
82+
<div styleName='close-text'>esc</div>
83+
</button>
8384

8485
<div styleName='control'>
85-
<input styleName='control-input'
86-
placeholder='Folder Name'
87-
ref='name'
88-
value={this.state.name}
89-
onChange={(e) => this.handleChange(e)}
90-
onKeyDown={(e) => this.handleInputKeyDown(e)}
91-
/>
86+
<div styleName='control-folder'>
87+
<div styleName='control-folder-label'>Folder name</div>
88+
<input styleName='control-folder-input'
89+
ref='name'
90+
value={this.state.name}
91+
onChange={(e) => this.handleChange(e)}
92+
onKeyDown={(e) => this.handleInputKeyDown(e)}
93+
/>
94+
</div>
9295
<button styleName='control-confirmButton'
9396
onClick={(e) => this.handleConfirmButtonClick(e)}
9497
>
95-
Confirm
98+
Create Folder
9699
</button>
97100
</div>
98101
</div>

browser/main/modals/CreateFolderModal.styl

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,52 @@
11
.root
22
modal()
3-
max-width 340px
3+
width 700px
4+
height 200px
45
overflow hidden
56
position relative
7+
padding 0 40px
68

79
.header
810
height 50px
11+
margin-bottom 10px
12+
margin-top 10px
913
font-size 18px
1014
line-height 50px
11-
padding 0 15px
1215
background-color $ui-backgroundColor
13-
border-bottom solid 1px $ui-borderColor
1416
color $ui-text-color
1517

16-
.closeButton
18+
.close-mark
19+
font-size 15px
20+
21+
.close
22+
height 50px
1723
position absolute
18-
top 10px
24+
background-color transparent
25+
color $ui-inactive-text-color
26+
border none
27+
top 7px
1928
right 10px
20-
height 30px
21-
width 0 25px
22-
border $ui-border
23-
border-radius 2px
24-
color $ui-text-color
25-
colorDefaultButton()
26-
27-
.control
28-
padding 25px 15px 15px
2929
text-align center
30+
width top-bar--height
31+
height top-bar--height
32+
33+
.control-folder-label
34+
text-align left
35+
font-size 14px
36+
color $ui-text-color
3037

31-
.control-input
38+
.control-folder-input
3239
display block
3340
height 30px
34-
width 240px
41+
width 620px
3542
padding 0 5px
36-
margin 0 auto 15px
37-
border none
38-
border-bottom solid 1px $border-color
39-
border-radius 2px
43+
margin 10px auto 15px
44+
border 1px solid #C9C9C9 // TODO: use variable.
45+
border-radius 5px
4046
background-color transparent
4147
outline none
4248
vertical-align middle
4349
font-size 18px
44-
text-align center
4550
&:disabled
4651
background-color $ui-input--disabled-backgroundColor
4752
&:focus, &:active
@@ -50,10 +55,12 @@
5055
.control-confirmButton
5156
display block
5257
height 30px
58+
width 620px
5359
border none
54-
border-radius 2px
60+
border-radius 5px
5561
padding 0 25px
56-
margin 0 auto
62+
margin 20px auto
63+
font-size 14px
5764
colorPrimaryButton()
5865

5966
body[data-theme="dark"]

0 commit comments

Comments
 (0)