Skip to content

Commit 5b29968

Browse files
committed
style: vertically align table content to middle
1 parent 7c0daac commit 5b29968

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/pages/calendar/calendar.less

+7-1
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,18 @@
3737
text-align: left;
3838
}
3939

40-
tbody tr th {
40+
tbody tr td:nth-child(2) {
4141
font-weight: 600;
4242
}
43+
44+
tbody tr td,
45+
tbody tr th {
46+
vertical-align: middle;
47+
}
4348

4449
a {
4550
font-size: unset;
51+
white-space: nowrap;
4652
}
4753
}
4854
}

src/pages/calendar/components/Task.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function Task(props: TaskT) {
3636

3737
return <tr>
3838
<td align={"center"}>{format(props.deadline, 'dd.MM.yyyy')}</td>
39-
<th align={"left"}>{props.title}</th>
39+
<td align={"left"}>{props.title}</td>
4040
<td>{responsible}</td>
4141
<td>{targets}</td>
4242
<td align={"center"}>{chapters}</td>

0 commit comments

Comments
 (0)