Skip to content

Commit 3481220

Browse files
committed
Tijdlijn scrollt nu correct mee bij scrollen bij overflow. Maart is een
uitzondering bij de afkortingen: I.p.v. eerste 3 letters, is het mrt.
1 parent ad4425b commit 3481220

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

schedule.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,12 @@ async function fetchSchedule(year, week, isFirstLoad) {
559559
0,
560560
3
561561
)}</span><span class="long">${month.slice(3)}</span>`;
562+
// maart is een uitzondering: mrt i.p.v. maa
563+
if (month == "maart") {
564+
date = `${weekday.slice(0, 2)}<span class="long">${weekday.slice(
565+
2
566+
)}</span> ${day}<span class="longExtraExtraExtra"> m<span class="long">aa</span>rt</span>`;
567+
}
562568
(grouped[dateFull] = grouped[dateFull] || { date, items: [] }).items.push(
563569
a
564570
);

style.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ details strong {
453453
#schedule {
454454
margin-top: 2.5rem;
455455
height: calc(100vh - 2.5rem);
456+
position: relative;
456457
}
457458
#schedule div {
458459
flex: 1;
@@ -968,13 +969,13 @@ button:disabled {
968969
}
969970
.weekEnabled .timeline {
970971
height: 2px;
971-
top: calc(var(--top) + 4.5rem);
972+
top: calc(var(--top) + 2rem);
972973
left: 0;
973974
}
974975
.ltrEnabled .timeline {
975976
width: 2px;
976977
height: calc(100vh - 3.75rem);
977-
left: calc(var(--top) * 3 + 0.25rem);
978+
left: calc(var(--top) * 3);
978979
}
979980
.dayEnabled .timeline {
980981
visibility: hidden;
@@ -1086,9 +1087,7 @@ label {
10861087
top: calc(var(--margin) * 1.2);
10871088
}
10881089
.weekEnabled .timeline {
1089-
height: 2px;
1090-
top: calc(var(--top) * 1.2 + 4.5rem);
1091-
left: 0;
1090+
top: calc(var(--top) * 1.2 + 2rem);
10921091
}
10931092
.weekEnabled .warning {
10941093
bottom: 4px;

0 commit comments

Comments
 (0)