Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions src/app/slots/slots.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,10 @@ export default function View() {
)}

{/* Timetable Section */}
<div className="mx-auto mt-12 mb-10 w-full max-w-[1000px]">
<div className="w-full mt-12 mb-10 px-4">
<div className="overflow-x-auto">
<div className="min-w-[1000px] h-[480px]">
<TimeTable
slotNames={active.map(i => ({
slotName: buttonTexts[i],
showName: true,
}))}
/>
<div className="min-w-[1000px]">
<TimeTable ... />
</div>
</div>
</div>
Expand Down
8 changes: 6 additions & 2 deletions src/components/ui/TimeTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,12 @@ export default function TimeTable({ slotNames }: { slotNames: tableFacingSlot[]

return (
<div
className="grid bg-black relative w-full h-full p-[1px] select-none font-inter"
style={{ gridTemplateColumns, gridTemplateRows }}
className="grid bg-black relative w-full p-[1px] select-none font-inter"
style={{
gridTemplateColumns,
gridTemplateRows,
aspectRatio: `${totalColWeight} / ${totalRowWeight}`,
}}
>
{cells}
<div
Expand Down