mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-22 22:22:12 +00:00
snippet note
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user