1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

modify: move star on left side

This commit is contained in:
sota1235
2016-12-21 15:59:25 +09:00
parent 18961ff555
commit bf9773be20
6 changed files with 27 additions and 19 deletions

View File

@@ -214,6 +214,10 @@ class MarkdownNoteDetail extends React.Component {
>
<div styleName='info'>
<div styleName='info-left'>
<StarButton styleName='info-left-button'
onClick={(e) => this.handleStarButtonClick(e)}
isActive={note.isStarred}
/>
<TagSelect
ref='tags'
value={this.state.note.tags}
@@ -221,10 +225,6 @@ class MarkdownNoteDetail extends React.Component {
/>
</div>
<div styleName='info-right'>
<StarButton styleName='info-right-button'
onClick={(e) => this.handleStarButtonClick(e)}
isActive={note.isStarred}
/>
<button styleName='info-right-button'
onClick={(e) => this.handleContextButtonClick(e)}
>

View File

@@ -9,7 +9,23 @@ $info-height = 60px
.info-left
float left
padding 0 5px
margin 18px 2px
margin 0px 2px
.info-left-button
width 34px
height 34px
border-radius 17px
navButtonColor()
border $ui-border
font-size 14px
margin 13px 2px
padding 0
&:active
border-color $ui-button--focus-borderColor
&:hover .info-right-button-tooltip
opacity 1
&:focus
border-color $ui-button--focus-borderColor
.info-right
float right

View File

@@ -522,6 +522,10 @@ class SnippetNoteDetail extends React.Component {
>
<div styleName='info'>
<div styleName='info-left'>
<StarButton styleName='info-left-button'
onClick={(e) => this.handleStarButtonClick(e)}
isActive={note.isStarred}
/>
<TagSelect
ref='tags'
value={this.state.note.tags}
@@ -529,10 +533,6 @@ class SnippetNoteDetail extends React.Component {
/>
</div>
<div styleName='info-right'>
<StarButton styleName='info-right-button'
onClick={(e) => this.handleStarButtonClick(e)}
isActive={note.isStarred}
/>
<button styleName='info-right-button'
onClick={(e) => this.handleContextButtonClick(e)}
>

View File

@@ -53,7 +53,6 @@ class StarButton extends React.Component {
: 'fa fa-star-o'
}
/>
<span styleName='tooltip'>Star Note</span>
</button>
)
}

View File

@@ -14,14 +14,6 @@
color $brand-color !important
.icon
transform rotate(-72deg)
.icon
transition transform 0.15s
.tooltip
tooltip()
position fixed
top 45px
right 65px
padding 5px
opacity 0
border-radius 2px

View File

@@ -1,4 +1,5 @@
.root
display: inline
position relative
user-select none