Skip to content

Commit 2027f60

Browse files
authored
Merge pull request #794 from BoostIO/fix-progress-bar-ui
Fix progress bar ui at Noteitem
2 parents ab1aa56 + 076edd3 commit 2027f60

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

browser/components/NoteItem.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ const NoteItem = ({ isActive, note, dateDisplay, handleNoteClick, handleDragStar
7070
{note.isStarred
7171
? <i styleName='item-star' className='fa fa-star' /> : ''
7272
}
73+
{note.type === 'MARKDOWN_NOTE'
74+
? <TodoProcess todoStatus={getTodoStatus(note.content)} />
75+
: ''
76+
}
7377
<div styleName='item-bottom'>
7478
<div styleName='item-bottom-tagList'>
7579
{note.tags.length > 0
@@ -78,10 +82,6 @@ const NoteItem = ({ isActive, note, dateDisplay, handleNoteClick, handleDragStar
7882
}
7983
</div>
8084
</div>
81-
{note.type === 'MARKDOWN_NOTE'
82-
? <TodoProcess todoStatus={getTodoStatus(note.content)} />
83-
: ''
84-
}
8585
</div>
8686
</div>
8787
)

browser/components/NoteItem.styl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ $control-height = 30px
117117

118118
.item-star
119119
position absolute
120-
right 5px
121-
bottom 0px
120+
right -20px
121+
bottom 2px
122122
width 34px
123123
height 34px
124124
color alpha($ui-favorite-star-button-color, 60%)

browser/components/TodoProcess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const TodoProcess = ({
1414
}) => (
1515
<div styleName='todo-process' style={{display: totalTodo > 0 ? '' : 'none'}}>
1616
<div styleName='todo-process-text'>
17-
<i className='fa fa-fw fa-tasks' />
17+
<i className='fa fa-fw fa-check-square-o' />
1818
{completedTodo} of {totalTodo}
1919
</div>
2020
<div styleName='todo-process-bar'>
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,45 @@
11
.todo-process
22
font-size 12px
33
display flex
4+
padding-top 15px
5+
width 85%
46

57
.todo-process-text
68
display inline-block
79
padding-right 10px
810
white-space nowrap
911
text-overflow ellipsis
12+
color $ui-inactive-text-color
1013
i
11-
color grey
14+
color $ui-inactive-text-color
1215
padding-right 5px
1316

1417
.todo-process-bar
1518
display inline-block
1619
margin auto
17-
width 150px
18-
height 5px
20+
height 4px
21+
border-radius 10px
1922
background-color #DADFE1
2023
border-radius 2px
2124
flex-grow 1
25+
border 1px solid alpha(#6C7A89, 10%)
2226

2327
.todo-process-bar--inner
2428
height 100%
29+
border-radius 5px
2530
background-color #6C7A89
2631
transition 0.3s
2732

2833

2934
body[data-theme="dark"]
3035
.todo-process
3136
color $ui-dark-text-color
37+
3238
.todo-process-bar
3339
background-color #363A3D
3440

41+
.todo-process-text
42+
color $ui-inactive-text-color
43+
3544
.todo-process-bar--inner
3645
background-color: alpha(#939395, 50%)

0 commit comments

Comments
 (0)