This repository was archived by the owner on Dec 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed
screens/projects/components/TaskControl Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import './CircleButton.less';
55import cn from '../../helpers/ClassNameHelper' ;
66
77interface CircleButtonProps {
8- className : string ;
8+ className ? : string ;
99 onClick : ( ) => void ;
1010 children : React . ReactNode ;
1111}
Original file line number Diff line number Diff line change 55 margin-left : 20px ;
66 padding : 8px ;
77 border-radius : 5px ;
8- line-height : 14 px ;
8+ line-height : 16 px ;
99 color : white ;
1010 background-color : #713A91 ;
1111}
1212
13- .task-control--info {
13+ .task-control__info {
1414 display : inline-flex ;
1515 flex : 1 ;
1616 flex-direction : column ;
1717 margin-right : 8px ;
1818 width : 140px ;
1919}
2020
21- .task-control--info span {
21+ .task-control__project {
22+ font-size : 12px ;
23+ }
24+
25+ .task-control__info span {
2226 white-space : nowrap ;
2327 text-overflow : ellipsis ;
2428 overflow : hidden ;
2529}
2630
27- .task-control--duration {
31+ .task-control__duration {
2832 margin-right : 8px ;
2933}
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ export default observer(function TaskControl() {
2121 if ( task ) {
2222 return (
2323 < span className = "task-control" >
24- < div className = "task-control--info " >
25- < span > { project ?. title } </ span >
24+ < div className = "task-control__info " >
25+ < span className = "task-control__project" > { project ?. title } </ span >
2626 < span > { task . title } </ span >
2727 </ div >
28- < span className = "task-control--duration " > { duration } </ span >
28+ < span className = "task-control__duration " > { duration } </ span >
2929 < CircleButton onClick = { ( ) => tasksStore . endTimer ( task ) } >
3030 < PauseOutlined />
3131 </ CircleButton >
You can’t perform that action at this time.
0 commit comments