Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix layout
  • Loading branch information
Kazu Yokomizo committed Jul 7, 2017
commit b78d9534aae7b8e784b26f9870d08fc9b28fff61
6 changes: 3 additions & 3 deletions browser/components/NoteItem.styl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $control-height = 30px
color $ui-inactive-text-color

.item-title
font-size 13px
font-size 14px
position relative
top -12px
left 20px
Expand Down Expand Up @@ -96,7 +96,7 @@ $control-height = 30px
padding-left 2px

.item-bottom-tagList-item
font-size 10px
font-size 11px
margin-right 8px
padding 0
height 20px
Expand All @@ -109,7 +109,7 @@ $control-height = 30px

.item-bottom-time
color $ui-inactive-text-color
font-size 10px
font-size 11px
padding-left 2px
padding-bottom 2px

Expand Down
4 changes: 2 additions & 2 deletions browser/components/NoteItemSimple.styl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $control-height = 30px

.item-simple
position relative
padding 0 25px
padding 0 20px
user-select none
cursor pointer
background-color $ui-noteList-backgroundColor
Expand Down Expand Up @@ -40,7 +40,7 @@ $control-height = 30px
background-color $ui-button--active-backgroundColor

.item-simple-title
font-size 12px
font-size 13px
height 40px
box-sizing border-box
line-height 24px
Expand Down
2 changes: 1 addition & 1 deletion browser/main/Detail/FolderSelect.styl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.root
position relative
border solid 1px transparent
line-height 34px
line-height 26px
vertical-align middle
border-radius 2px
transition 0.15s
Expand Down
6 changes: 3 additions & 3 deletions browser/main/Detail/MarkdownNoteDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class MarkdownNoteDetail extends React.Component {
}

getToggleLockButton () {
return this.state.isLocked ? 'fa-lock' : 'fa-unlock-alt'
return this.state.isLocked ? 'fa-lock' : 'fa-unlock'
}

handleDeleteKeyDown (e) {
Expand Down Expand Up @@ -272,7 +272,7 @@ class MarkdownNoteDetail extends React.Component {
>
<i className={faClassName} styleName='lock-button' />
<span styleName='control-lockButton-tooltip'>
{this.state.isLocked ? 'Unlock' : 'Lock'}
{this.state.isLocked ? 'Lock' : 'Unlock'}
</span>
</button>
return (
Expand All @@ -285,7 +285,7 @@ class MarkdownNoteDetail extends React.Component {
<button styleName='control-fullScreenButton'
onMouseDown={(e) => this.handleFullScreenButton(e)}
>
<i className='fa fa-arrows-alt' styleName='fullScreen-button' />
<i className='fa fa-expand' styleName='fullScreen-button' />
</button>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion browser/main/Detail/NoteDetailInfo.styl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $info-margin-under-border = 27px
display inline-block
padding 0 3px
height 34px
line-height 34px
line-height 26px
vertical-align middle
border-radius 3px

Expand All @@ -35,6 +35,7 @@ $info-margin-under-border = 27px
navButtonColor()
color $ui-favorite-star-button-color
font-size 14px
line-height 0
margin 13px 2px
padding 0
border-radius 17px
Expand Down
2 changes: 1 addition & 1 deletion browser/main/Detail/SnippetNoteDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ class SnippetNoteDetail extends React.Component {
<button styleName='control-fullScreenButton'
onMouseDown={(e) => this.handleFullScreenButton(e)}
>
<i className='fa fa-arrows-alt' styleName='fullScreen-button' />
<i className='fa fa-expand' styleName='fullScreen-button' />
</button>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions browser/main/Detail/TagSelect.styl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
display inline-block
top 19px
user-select none
height 26px
vertical-align middle
width 300px
overflow-x scroll
Expand All @@ -14,7 +15,6 @@
display inline-block
margin 1px 3px
padding 0
vertical-align middle
height 20px
background-color alpha($ui-tag-backgroundColor, 10%)
border-radius 3px
Expand Down Expand Up @@ -49,9 +49,9 @@

.newTag
display inline-block
margin 0 2px
margin 2px 0 15px 2px
vertical-align middle
height 24px
height 18px
box-sizing borde-box
border none
background-color transparent
Expand Down
7 changes: 5 additions & 2 deletions browser/main/NoteList/NoteList.styl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $control-height = 30px

.control-sortBy
flex 1
padding-left 25px
padding-left 22px

.control-sortBy-select
appearance: none;
Expand All @@ -28,11 +28,14 @@ $control-height = 30px
background-color transparent
outline none
cursor pointer
font-size 10px
font-size 11px
&:hover
transition 0.2s
color $ui-text-color

.control-button-area
margin-right 12px

.control-button
width 25px
padding 0
Expand Down
34 changes: 18 additions & 16 deletions browser/main/NoteList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,22 +439,24 @@ class NoteList extends React.Component {
<option value='ALPHABETICAL'>Alphabetical</option>
</select>
</div>
<button styleName={config.listStyle === 'DEFAULT'
? 'control-button--active'
: 'control-button'
}
onClick={(e) => this.handleListStyleButtonClick(e, 'DEFAULT')}
>
<i className='fa fa-th-large' />
</button>
<button styleName={config.listStyle === 'SMALL'
? 'control-button--active'
: 'control-button'
}
onClick={(e) => this.handleListStyleButtonClick(e, 'SMALL')}
>
<i className='fa fa-list-ul' />
</button>
<div styleName="control-button-area">
<button styleName={config.listStyle === 'DEFAULT'
? 'control-button--active'
: 'control-button'
}
onClick={(e) => this.handleListStyleButtonClick(e, 'DEFAULT')}
>
<i className='fa fa-th-large' />
</button>
<button styleName={config.listStyle === 'SMALL'
? 'control-button--active'
: 'control-button'
}
onClick={(e) => this.handleListStyleButtonClick(e, 'SMALL')}
>
<i className='fa fa-list-ul' />
</button>
</div>
</div>
<div styleName='list'
ref='list'
Expand Down
8 changes: 5 additions & 3 deletions browser/main/TopBar/TopBar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ $control-height = 34px
.control-search-icon
absolute top bottom left
line-height 32px
padding-left 2px
width 35px
color $ui-inactive-text-color
background-color $ui-noteList-backgroundColor
Expand All @@ -39,6 +40,9 @@ $control-height = 34px
height 100%
outline none
border none
color $ui-text-color
font-size 16px
padding-bottom 2px
background-color $ui-noteList-backgroundColor

.control-search-optionList
Expand Down Expand Up @@ -92,9 +96,7 @@ $control-height = 34px
width 32px
height $control-height - 2
navButtonColor()
border $ui-border
border-radius 32px
font-size 14px
font-size 16px
line-height 28px
padding 0
&:active
Expand Down
4 changes: 2 additions & 2 deletions browser/main/TopBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class TopBar extends React.Component {
ref='searchInput'
value={this.state.search}
onChange={(e) => this.handleSearchChange(e)}
placeholder='Search'
placeholder=''
type='text'
className='searchInput'
/>
Expand All @@ -232,7 +232,7 @@ class TopBar extends React.Component {
</div>
<button styleName='control-newPostButton'
onClick={(e) => this.handleNewPostButtonClick(e)}>
<i className='fa fa-plus' />
<i className='fa fa-pencil-square-o' />
<span styleName='control-newPostButton-tooltip'>
Make a Note {OSX ? '⌘' : '^'} + n
</span>
Expand Down