We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb4cea9 commit a762fdbCopy full SHA for a762fdb
src/components/Timetable.tsx
@@ -24,10 +24,7 @@ export function findStartTime(activity: ICBDActivity): number {
24
JSON.stringify(activity.timeslots)
25
);
26
27
- timeslots.forEach((t) => {
28
- let tTime = timeToMinutes(t.start_time);
29
- startTime = Math.min(tTime, startTime);
30
- });
+ return Math.min(...timeslots.map((t) => timeToMinutes(t.start_time)));
31
}
32
33
return startTime;
src/styles/Timetable.module.scss
@@ -64,13 +64,14 @@ $header-height: 3rem;
64
65
66
.table {
67
+ height: 100%;
68
min-width: 1500px;
69
border-collapse: collapse;
70
overflow: hidden;
71
72
tbody {
73
td {
- padding: 1rem 0 1rem 0;
74
+ padding: 2rem 0 2rem 0;
75
height: 100%;
76
77
0 commit comments