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

snippet note

This commit is contained in:
Dick Choi
2016-07-21 01:17:53 +09:00
parent 69d11b5cd0
commit b6d34472fe
13 changed files with 890 additions and 96 deletions

View File

@@ -54,9 +54,17 @@
.item-title
height 20px
line-height 20px
padding 0 5px
padding 0 5px 0 0
font-weight bold
overflow ellipsis
color $ui-text-color
.item-title-icon
font-size 12px
color $ui-inactive-text-color
padding-right 3px
.item-title-empty
font-weight normal
color $ui-inactive-text-color
.item-tagList
height 30px

View File

@@ -236,7 +236,16 @@ class NoteList extends React.Component {
</div>
<div styleName='item-title'>{note.title}</div>
<div styleName='item-title'>
{note.type === 'SNIPPET_NOTE'
? <i styleName='item-title-icon' className='fa fa-fw fa-code'/>
: <i styleName='item-title-icon' className='fa fa-fw fa-file-text-o'/>
}
{note.title.trim().length > 0
? note.title
: <span styleName='item-title-empty'>Empty</span>
}
</div>
<div styleName='item-tagList'>
<i styleName='item-tagList-icon'