aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ScheduleInteractive.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ScheduleInteractive.astro')
-rw-r--r--src/components/ScheduleInteractive.astro10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/ScheduleInteractive.astro b/src/components/ScheduleInteractive.astro
index fdc0767..955977d 100644
--- a/src/components/ScheduleInteractive.astro
+++ b/src/components/ScheduleInteractive.astro
@@ -226,6 +226,16 @@
}
}
+ // 終了した予定は表の下にまとめ、開催中の予定から表示する。
+ for (const table of [meetingsTable, eventsTable]) {
+ const tbody = table.tBodies[0];
+ if (!tbody) continue;
+ const rows = [...tbody.rows];
+ for (const row of rows) {
+ if (row.classList.contains('is-ended')) tbody.appendChild(row);
+ }
+ }
+
let selectedDate = todayKey;
let currentMonth = todayMonth;
let activeCategory = 'all';