mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Fix progress bar UI at NoteItem
This commit is contained in:
@@ -70,6 +70,10 @@ const NoteItem = ({ isActive, note, dateDisplay, handleNoteClick, handleDragStar
|
|||||||
{note.isStarred
|
{note.isStarred
|
||||||
? <i styleName='item-star' className='fa fa-star' /> : ''
|
? <i styleName='item-star' className='fa fa-star' /> : ''
|
||||||
}
|
}
|
||||||
|
{note.type === 'MARKDOWN_NOTE'
|
||||||
|
? <TodoProcess todoStatus={getTodoStatus(note.content)} />
|
||||||
|
: ''
|
||||||
|
}
|
||||||
<div styleName='item-bottom'>
|
<div styleName='item-bottom'>
|
||||||
<div styleName='item-bottom-tagList'>
|
<div styleName='item-bottom-tagList'>
|
||||||
{note.tags.length > 0
|
{note.tags.length > 0
|
||||||
@@ -78,10 +82,6 @@ const NoteItem = ({ isActive, note, dateDisplay, handleNoteClick, handleDragStar
|
|||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{note.type === 'MARKDOWN_NOTE'
|
|
||||||
? <TodoProcess todoStatus={getTodoStatus(note.content)} />
|
|
||||||
: ''
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -117,8 +117,8 @@ $control-height = 30px
|
|||||||
|
|
||||||
.item-star
|
.item-star
|
||||||
position absolute
|
position absolute
|
||||||
right 5px
|
right -20px
|
||||||
bottom 0px
|
bottom 2px
|
||||||
width 34px
|
width 34px
|
||||||
height 34px
|
height 34px
|
||||||
color alpha($ui-favorite-star-button-color, 60%)
|
color alpha($ui-favorite-star-button-color, 60%)
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ const TodoProcess = ({
|
|||||||
}) => (
|
}) => (
|
||||||
<div styleName='todo-process' style={{display: totalTodo > 0 ? '' : 'none'}}>
|
<div styleName='todo-process' style={{display: totalTodo > 0 ? '' : 'none'}}>
|
||||||
<div styleName='todo-process-text'>
|
<div styleName='todo-process-text'>
|
||||||
<i className='fa fa-fw fa-tasks' />
|
<i className='fa fa-fw fa-check-square-o' />
|
||||||
{completedTodo} of {totalTodo}
|
{completedTodo} of {totalTodo}
|
||||||
</div>
|
</div>
|
||||||
<div styleName='todo-process-bar'>
|
<div styleName='todo-process-bar'>
|
||||||
|
|||||||
@@ -1,27 +1,32 @@
|
|||||||
.todo-process
|
.todo-process
|
||||||
font-size 12px
|
font-size 12px
|
||||||
display flex
|
display flex
|
||||||
|
padding-top 15px
|
||||||
|
width 85%
|
||||||
|
|
||||||
.todo-process-text
|
.todo-process-text
|
||||||
display inline-block
|
display inline-block
|
||||||
padding-right 10px
|
padding-right 10px
|
||||||
white-space nowrap
|
white-space nowrap
|
||||||
text-overflow ellipsis
|
text-overflow ellipsis
|
||||||
|
color $ui-inactive-text-color
|
||||||
i
|
i
|
||||||
color grey
|
color $ui-inactive-text-color
|
||||||
padding-right 5px
|
padding-right 5px
|
||||||
|
|
||||||
.todo-process-bar
|
.todo-process-bar
|
||||||
display inline-block
|
display inline-block
|
||||||
margin auto
|
margin auto
|
||||||
width 150px
|
height 4px
|
||||||
height 5px
|
border-radius 10px
|
||||||
background-color #DADFE1
|
background-color #DADFE1
|
||||||
border-radius 2px
|
border-radius 2px
|
||||||
flex-grow 1
|
flex-grow 1
|
||||||
|
border 1px solid alpha(#6C7A89, 10%)
|
||||||
|
|
||||||
.todo-process-bar--inner
|
.todo-process-bar--inner
|
||||||
height 100%
|
height 100%
|
||||||
|
border-radius 5px
|
||||||
background-color #6C7A89
|
background-color #6C7A89
|
||||||
transition 0.3s
|
transition 0.3s
|
||||||
|
|
||||||
@@ -29,8 +34,12 @@
|
|||||||
body[data-theme="dark"]
|
body[data-theme="dark"]
|
||||||
.todo-process
|
.todo-process
|
||||||
color $ui-dark-text-color
|
color $ui-dark-text-color
|
||||||
|
|
||||||
.todo-process-bar
|
.todo-process-bar
|
||||||
background-color #363A3D
|
background-color #363A3D
|
||||||
|
|
||||||
|
.todo-process-text
|
||||||
|
color $ui-inactive-text-color
|
||||||
|
|
||||||
.todo-process-bar--inner
|
.todo-process-bar--inner
|
||||||
background-color: alpha(#939395, 50%)
|
background-color: alpha(#939395, 50%)
|
||||||
|
|||||||
Reference in New Issue
Block a user