From 348695a9a8217aa192817608bcf2742647c20c16 Mon Sep 17 00:00:00 2001 From: Kachen <106764256+Roshanen@users.noreply.github.com> Date: Mon, 11 Nov 2024 02:48:49 +0700 Subject: [PATCH] style: add table overflow-scroll (#27) --- .../home/_components/seminar-table.tsx | 60 ++++++++++--------- src/modules/home/_sections/seminar.tsx | 11 ++-- 2 files changed, 37 insertions(+), 34 deletions(-) diff --git a/src/modules/home/_components/seminar-table.tsx b/src/modules/home/_components/seminar-table.tsx index 8c17a3e..4aefb0d 100644 --- a/src/modules/home/_components/seminar-table.tsx +++ b/src/modules/home/_components/seminar-table.tsx @@ -7,35 +7,37 @@ type Props = { export function SeminarTable({ seminars }: Props) { return ( - - - - - - - - - - {seminars.map((seminar, index) => ( - - - - +
+
- เวลา - - ห้องที่ 1 (001) - - ห้องที่ 2 (002) -
- {`${fTime(seminar.startAt, formatStr.time24Hr)}-${fTime(seminar.endAt, formatStr.time24Hr)}`} - - {seminar.room1} - - {seminar.room2} -
+ + + + + - ))} - -
+ เวลา + + ห้องที่ 1 (001) + + ห้องที่ 2 (002) +
+ + + {seminars.map((seminar, index) => ( + + + {`${fTime(seminar.startAt, formatStr.time24Hr)}-${fTime(seminar.endAt, formatStr.time24Hr)}`} + + + {seminar.room1} + + + {seminar.room2} + + + ))} + + + ); } diff --git a/src/modules/home/_sections/seminar.tsx b/src/modules/home/_sections/seminar.tsx index a8f019e..9eb7996 100644 --- a/src/modules/home/_sections/seminar.tsx +++ b/src/modules/home/_sections/seminar.tsx @@ -18,25 +18,26 @@ export default async function Seminar() { className="object-cover" /> -
+
+

กำหนดการสัมมนา

{seminarList.length <= 0 && ( -

+

ไม่พบกำหนดการ

)} - - + + {seminarList.map((seminarSlot, index) => ( Day {index + 1}{' '}