Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit b245342

Browse files
author
Dmitry Yadrikhinsky
committed
[Hours] Update style
1 parent 2998924 commit b245342

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

src/components/CircleButton/CircleButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import './CircleButton.less';
55
import cn from '../../helpers/ClassNameHelper';
66

77
interface CircleButtonProps {
8-
className: string;
8+
className?: string;
99
onClick: () => void;
1010
children: React.ReactNode;
1111
}

src/screens/projects/components/TaskControl/TaskControl.less

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,29 @@
55
margin-left: 20px;
66
padding: 8px;
77
border-radius: 5px;
8-
line-height: 14px;
8+
line-height: 16px;
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
}

src/screens/projects/components/TaskControl/TaskControl.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)