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:
@@ -214,6 +214,10 @@ class MarkdownNoteDetail extends React.Component {
|
|||||||
>
|
>
|
||||||
<div styleName='info'>
|
<div styleName='info'>
|
||||||
<div styleName='info-left'>
|
<div styleName='info-left'>
|
||||||
|
<StarButton styleName='info-left-button'
|
||||||
|
onClick={(e) => this.handleStarButtonClick(e)}
|
||||||
|
isActive={note.isStarred}
|
||||||
|
/>
|
||||||
<TagSelect
|
<TagSelect
|
||||||
ref='tags'
|
ref='tags'
|
||||||
value={this.state.note.tags}
|
value={this.state.note.tags}
|
||||||
@@ -221,10 +225,6 @@ class MarkdownNoteDetail extends React.Component {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div styleName='info-right'>
|
<div styleName='info-right'>
|
||||||
<StarButton styleName='info-right-button'
|
|
||||||
onClick={(e) => this.handleStarButtonClick(e)}
|
|
||||||
isActive={note.isStarred}
|
|
||||||
/>
|
|
||||||
<button styleName='info-right-button'
|
<button styleName='info-right-button'
|
||||||
onClick={(e) => this.handleContextButtonClick(e)}
|
onClick={(e) => this.handleContextButtonClick(e)}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -9,7 +9,23 @@ $info-height = 60px
|
|||||||
.info-left
|
.info-left
|
||||||
float left
|
float left
|
||||||
padding 0 5px
|
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
|
.info-right
|
||||||
float right
|
float right
|
||||||
|
|||||||
@@ -522,6 +522,10 @@ class SnippetNoteDetail extends React.Component {
|
|||||||
>
|
>
|
||||||
<div styleName='info'>
|
<div styleName='info'>
|
||||||
<div styleName='info-left'>
|
<div styleName='info-left'>
|
||||||
|
<StarButton styleName='info-left-button'
|
||||||
|
onClick={(e) => this.handleStarButtonClick(e)}
|
||||||
|
isActive={note.isStarred}
|
||||||
|
/>
|
||||||
<TagSelect
|
<TagSelect
|
||||||
ref='tags'
|
ref='tags'
|
||||||
value={this.state.note.tags}
|
value={this.state.note.tags}
|
||||||
@@ -529,10 +533,6 @@ class SnippetNoteDetail extends React.Component {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div styleName='info-right'>
|
<div styleName='info-right'>
|
||||||
<StarButton styleName='info-right-button'
|
|
||||||
onClick={(e) => this.handleStarButtonClick(e)}
|
|
||||||
isActive={note.isStarred}
|
|
||||||
/>
|
|
||||||
<button styleName='info-right-button'
|
<button styleName='info-right-button'
|
||||||
onClick={(e) => this.handleContextButtonClick(e)}
|
onClick={(e) => this.handleContextButtonClick(e)}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ class StarButton extends React.Component {
|
|||||||
: 'fa fa-star-o'
|
: 'fa fa-star-o'
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<span styleName='tooltip'>Star Note</span>
|
|
||||||
</button>
|
</button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,14 +14,6 @@
|
|||||||
color $brand-color !important
|
color $brand-color !important
|
||||||
.icon
|
.icon
|
||||||
transform rotate(-72deg)
|
transform rotate(-72deg)
|
||||||
|
|
||||||
.icon
|
.icon
|
||||||
transition transform 0.15s
|
transition transform 0.15s
|
||||||
|
|
||||||
.tooltip
|
|
||||||
tooltip()
|
|
||||||
position fixed
|
|
||||||
top 45px
|
|
||||||
right 65px
|
|
||||||
padding 5px
|
|
||||||
opacity 0
|
|
||||||
border-radius 2px
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
.root
|
.root
|
||||||
|
display: inline
|
||||||
position relative
|
position relative
|
||||||
user-select none
|
user-select none
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user