Skip to content

Commit a762fdb

Browse files
authored
style: icbd small style changes (#97)
1 parent bb4cea9 commit a762fdb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/components/Timetable.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ export function findStartTime(activity: ICBDActivity): number {
2424
JSON.stringify(activity.timeslots)
2525
);
2626

27-
timeslots.forEach((t) => {
28-
let tTime = timeToMinutes(t.start_time);
29-
startTime = Math.min(tTime, startTime);
30-
});
27+
return Math.min(...timeslots.map((t) => timeToMinutes(t.start_time)));
3128
}
3229

3330
return startTime;

src/styles/Timetable.module.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,14 @@ $header-height: 3rem;
6464
}
6565

6666
.table {
67+
height: 100%;
6768
min-width: 1500px;
6869
border-collapse: collapse;
6970
overflow: hidden;
7071

7172
tbody {
7273
td {
73-
padding: 1rem 0 1rem 0;
74+
padding: 2rem 0 2rem 0;
7475
height: 100%;
7576
}
7677

0 commit comments

Comments
 (0)