Skip to content

Commit 7a4234e

Browse files
authored
Merge pull request #690 from BoostIO/update-layout
Fix layout
2 parents bdefaf7 + 4b9640e commit 7a4234e

11 files changed

Lines changed: 52 additions & 48 deletions

File tree

browser/components/NoteItem.styl

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $control-height = 30px
6666
color $ui-inactive-text-color
6767

6868
.item-title
69-
font-size 13px
69+
font-size 14px
7070
position relative
7171
top -12px
7272
left 20px
@@ -92,11 +92,12 @@ $control-height = 30px
9292
flex 1
9393
overflow ellipsis
9494
line-height 20px
95-
padding-top 2px
95+
padding-top 7px
9696
padding-left 2px
97+
margin-right 27px
9798

9899
.item-bottom-tagList-item
99-
font-size 10px
100+
font-size 11px
100101
margin-right 8px
101102
padding 0
102103
height 20px
@@ -109,14 +110,14 @@ $control-height = 30px
109110

110111
.item-bottom-time
111112
color $ui-inactive-text-color
112-
font-size 10px
113+
font-size 11px
113114
padding-left 2px
114115
padding-bottom 2px
115116

116117
.item-star
117118
position absolute
118-
top 34px
119-
left 5px
119+
right 5px
120+
bottom 0px
120121
width 34px
121122
height 34px
122123
color alpha($ui-favorite-star-button-color, 60%)

browser/components/NoteItemSimple.styl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $control-height = 30px
77

88
.item-simple
99
position relative
10-
padding 0 25px
10+
padding 0 20px
1111
user-select none
1212
cursor pointer
1313
background-color $ui-noteList-backgroundColor
@@ -40,7 +40,7 @@ $control-height = 30px
4040
background-color $ui-button--active-backgroundColor
4141

4242
.item-simple-title
43-
font-size 12px
43+
font-size 13px
4444
height 40px
4545
box-sizing border-box
4646
line-height 24px

browser/main/Detail/FolderSelect.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.root
22
position relative
33
border solid 1px transparent
4-
line-height 34px
4+
line-height 26px
55
vertical-align middle
66
border-radius 2px
77
transition 0.15s

browser/main/Detail/MarkdownNoteDetail.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class MarkdownNoteDetail extends React.Component {
209209
}
210210

211211
getToggleLockButton () {
212-
return this.state.isLocked ? 'fa-lock' : 'fa-unlock-alt'
212+
return this.state.isLocked ? 'fa-lock' : 'fa-unlock'
213213
}
214214

215215
handleDeleteKeyDown (e) {
@@ -272,7 +272,7 @@ class MarkdownNoteDetail extends React.Component {
272272
>
273273
<i className={faClassName} styleName='lock-button' />
274274
<span styleName='control-lockButton-tooltip'>
275-
{this.state.isLocked ? 'Unlock' : 'Lock'}
275+
{this.state.isLocked ? 'Lock' : 'Unlock'}
276276
</span>
277277
</button>
278278
return (
@@ -285,7 +285,7 @@ class MarkdownNoteDetail extends React.Component {
285285
<button styleName='control-fullScreenButton'
286286
onMouseDown={(e) => this.handleFullScreenButton(e)}
287287
>
288-
<i className='fa fa-arrows-alt' styleName='fullScreen-button' />
288+
<i className='fa fa-expand' styleName='fullScreen-button' />
289289
</button>
290290
</div>
291291
</div>

browser/main/Detail/NoteDetailInfo.styl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $info-margin-under-border = 27px
2525
display inline-block
2626
padding 0 3px
2727
height 34px
28-
line-height 34px
28+
line-height 26px
2929
vertical-align middle
3030
border-radius 3px
3131

@@ -35,6 +35,7 @@ $info-margin-under-border = 27px
3535
navButtonColor()
3636
color $ui-favorite-star-button-color
3737
font-size 14px
38+
line-height 0
3839
margin 13px 2px
3940
padding 0
4041
border-radius 17px

browser/main/Detail/SnippetNoteDetail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ class SnippetNoteDetail extends React.Component {
525525
<button styleName='control-fullScreenButton'
526526
onMouseDown={(e) => this.handleFullScreenButton(e)}
527527
>
528-
<i className='fa fa-arrows-alt' styleName='fullScreen-button' />
528+
<i className='fa fa-expand' styleName='fullScreen-button' />
529529
</button>
530530
</div>
531531
</div>

browser/main/Detail/TagSelect.styl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
display inline-block
33
top 19px
44
user-select none
5+
height 26px
56
vertical-align middle
67
width 300px
78
overflow-x scroll
@@ -14,7 +15,6 @@
1415
display inline-block
1516
margin 1px 3px
1617
padding 0
17-
vertical-align middle
1818
height 20px
1919
background-color alpha($ui-tag-backgroundColor, 10%)
2020
border-radius 3px
@@ -49,9 +49,9 @@
4949

5050
.newTag
5151
display inline-block
52-
margin 0 2px
52+
margin 2px 0 15px 2px
5353
vertical-align middle
54-
height 24px
54+
height 18px
5555
box-sizing borde-box
5656
border none
5757
background-color transparent

browser/main/NoteList/NoteList.styl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $control-height = 30px
1717

1818
.control-sortBy
1919
flex 1
20-
padding-left 25px
20+
padding-left 22px
2121

2222
.control-sortBy-select
2323
appearance: none;
@@ -28,11 +28,14 @@ $control-height = 30px
2828
background-color transparent
2929
outline none
3030
cursor pointer
31-
font-size 10px
31+
font-size 11px
3232
&:hover
3333
transition 0.2s
3434
color $ui-text-color
3535

36+
.control-button-area
37+
margin-right 12px
38+
3639
.control-button
3740
width 25px
3841
padding 0

browser/main/NoteList/index.js

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -439,22 +439,24 @@ class NoteList extends React.Component {
439439
<option value='ALPHABETICAL'>Alphabetical</option>
440440
</select>
441441
</div>
442-
<button styleName={config.listStyle === 'DEFAULT'
443-
? 'control-button--active'
444-
: 'control-button'
445-
}
446-
onClick={(e) => this.handleListStyleButtonClick(e, 'DEFAULT')}
447-
>
448-
<i className='fa fa-th-large' />
449-
</button>
450-
<button styleName={config.listStyle === 'SMALL'
451-
? 'control-button--active'
452-
: 'control-button'
453-
}
454-
onClick={(e) => this.handleListStyleButtonClick(e, 'SMALL')}
455-
>
456-
<i className='fa fa-list-ul' />
457-
</button>
442+
<div styleName='control-button-area'>
443+
<button styleName={config.listStyle === 'DEFAULT'
444+
? 'control-button--active'
445+
: 'control-button'
446+
}
447+
onClick={(e) => this.handleListStyleButtonClick(e, 'DEFAULT')}
448+
>
449+
<i className='fa fa-th-large' />
450+
</button>
451+
<button styleName={config.listStyle === 'SMALL'
452+
? 'control-button--active'
453+
: 'control-button'
454+
}
455+
onClick={(e) => this.handleListStyleButtonClick(e, 'SMALL')}
456+
>
457+
<i className='fa fa-list-ul' />
458+
</button>
459+
</div>
458460
</div>
459461
<div styleName='list'
460462
ref='list'

browser/main/TopBar/TopBar.styl

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,25 @@ $control-height = 34px
1919

2020
.control-search
2121
height 32px
22+
width 1px
2223
flex 1
2324
background-color white
2425
position relative
2526

26-
.control-search-icon
27-
absolute top bottom left
28-
line-height 32px
29-
width 35px
30-
color $ui-inactive-text-color
31-
background-color $ui-noteList-backgroundColor
32-
3327
.control-search-input
3428
display block
3529
absolute top bottom right
36-
left 30px
30+
width 100%
31+
padding-left 12px
32+
background-color $ui-noteList-backgroundColor
3733
input
3834
width 100%
3935
height 100%
4036
outline none
4137
border none
38+
color $ui-text-color
39+
font-size 16px
40+
padding-bottom 2px
4241
background-color $ui-noteList-backgroundColor
4342

4443
.control-search-optionList
@@ -92,9 +91,7 @@ $control-height = 34px
9291
width 32px
9392
height $control-height - 2
9493
navButtonColor()
95-
border $ui-border
96-
border-radius 32px
97-
font-size 14px
94+
font-size 16px
9895
line-height 28px
9996
padding 0
10097
&:active
@@ -132,6 +129,7 @@ body[data-theme="dark"]
132129
background-color $ui-dark-noteList-backgroundColor
133130

134131
.control-search-input
132+
background-color $ui-dark-noteList-backgroundColor
135133
input
136134
background-color $ui-dark-noteList-backgroundColor
137135
color $ui-dark-text-color

0 commit comments

Comments
 (0)