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

Pin to top layout

This commit is contained in:
Kazu Yokomizo
2017-10-15 17:20:55 +09:00
parent 3159cc0ded
commit ebfd8f40e3
2 changed files with 12 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ const NoteItem = ({ isActive, note, dateDisplay, handleNoteClick, handleNoteCont
? <i styleName='item-star' className='fa fa-star' /> : ''
}
{note.isPinned && !pathname.match(/\/home|\/starred|\/trash/)
? <i styleName='item-pin' className='fa fa-map-pin' /> : ''
? <i styleName='item-pin' className='fa fa-thumb-tack' /> : ''
}
{note.type === 'MARKDOWN_NOTE'
? <TodoProcess todoStatus={getTodoStatus(note.content)} />

View File

@@ -126,6 +126,17 @@ $control-height = 30px
padding 0
border-radius 17px
.item-pin
position absolute
right -21px
bottom 28px
width 34px
height 34px
color #E54D42
font-size 14px
padding 0
border-radius 17px
body[data-theme="dark"]
.root
border-color $ui-dark-borderColor