mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Change markdown lock icon
This commit is contained in:
@@ -232,7 +232,7 @@ class MarkdownNoteDetail extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getToggleLockButton () {
|
getToggleLockButton () {
|
||||||
return this.state.isLocked ? 'fa-lock' : 'fa-unlock'
|
return this.state.isLocked ? 'fa-eye-slash' : 'fa-eye'
|
||||||
}
|
}
|
||||||
|
|
||||||
handleDeleteKeyDown (e) {
|
handleDeleteKeyDown (e) {
|
||||||
@@ -339,9 +339,6 @@ class MarkdownNoteDetail extends React.Component {
|
|||||||
onMouseDown={(e) => this.handleLockButtonMouseDown(e)}
|
onMouseDown={(e) => this.handleLockButtonMouseDown(e)}
|
||||||
>
|
>
|
||||||
<i className={faClassName} styleName='lock-button' />
|
<i className={faClassName} styleName='lock-button' />
|
||||||
<span styleName='control-lockButton-tooltip'>
|
|
||||||
{this.state.isLocked ? 'Unlock Editor' : 'Keep Editor Locked'}
|
|
||||||
</span>
|
|
||||||
</button>
|
</button>
|
||||||
return (
|
return (
|
||||||
this.state.isLockButtonShown ? lockButtonComponent : ''
|
this.state.isLockButtonShown ? lockButtonComponent : ''
|
||||||
|
|||||||
@@ -14,18 +14,6 @@
|
|||||||
top 160px
|
top 160px
|
||||||
topBarButtonLight()
|
topBarButtonLight()
|
||||||
|
|
||||||
.control-lockButton-tooltip
|
|
||||||
tooltip()
|
|
||||||
position fixed
|
|
||||||
pointer-events none
|
|
||||||
top 50px
|
|
||||||
z-index 200
|
|
||||||
padding 5px
|
|
||||||
line-height normal
|
|
||||||
border-radius 2px
|
|
||||||
opacity 0
|
|
||||||
transition 0.1s
|
|
||||||
|
|
||||||
.trashed-infopanel
|
.trashed-infopanel
|
||||||
top 40px
|
top 40px
|
||||||
position relative
|
position relative
|
||||||
|
|||||||
@@ -186,12 +186,13 @@ topBarButtonLight()
|
|||||||
border-radius 17px
|
border-radius 17px
|
||||||
font-size 14px
|
font-size 14px
|
||||||
border none
|
border none
|
||||||
color alpha($ui-button-color, 0.3)
|
color alpha($ui-button-color, 0.4)
|
||||||
fill $ui-button-color
|
fill $ui-button-color
|
||||||
background-color transparent
|
background-color transparent
|
||||||
&:active
|
&:active
|
||||||
border-color $ui-button--active-backgroundColor
|
border-color $ui-button--active-backgroundColor
|
||||||
&:hover
|
&:hover
|
||||||
|
transform scale(1.1)
|
||||||
transition 0.4s
|
transition 0.4s
|
||||||
color $ui-button-color
|
color $ui-button-color
|
||||||
.control-lockButton-tooltip
|
.control-lockButton-tooltip
|
||||||
|
|||||||
Reference in New Issue
Block a user