Skip to content

Commit

Permalink
style: vertically align table content to middle
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-zelger committed Oct 25, 2024
1 parent 7c0daac commit 5b29968
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/pages/calendar/calendar.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,18 @@
text-align: left;
}

tbody tr th {
tbody tr td:nth-child(2) {
font-weight: 600;
}

tbody tr td,
tbody tr th {
vertical-align: middle;
}

a {
font-size: unset;
white-space: nowrap;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/calendar/components/Task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function Task(props: TaskT) {

return <tr>
<td align={"center"}>{format(props.deadline, 'dd.MM.yyyy')}</td>
<th align={"left"}>{props.title}</th>
<td align={"left"}>{props.title}</td>
<td>{responsible}</td>
<td>{targets}</td>
<td align={"center"}>{chapters}</td>
Expand Down

0 comments on commit 5b29968

Please sign in to comment.