Skip to content

Commit

Permalink
fix overflow timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lillijo committed Jul 3, 2024
1 parent e439171 commit a676328
Showing 1 changed file with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,22 @@ export default async function TimeTable() {
const items = await getEventLocations();

return (
<div
className="relative h-fit w-screen overflow-scroll"
id="timetable-container"
>
<TimelineDays />
<TimeScale />
<TimeGrid />
{items.map((eventLocation) => (
<EventContainer key={eventLocation.id} location={eventLocation}>
<EventLocation location={eventLocation} />
</EventContainer>
))}
<ScrollForwardButton />
<ScrollBackwardButton />
<div className="relative h-content w-full overflow-x-visible overflow-y-scroll">
<div
className="relative h-fit w-screen overflow-y-clip overflow-x-scroll"
id="timetable-container"
>
<TimelineDays />
<TimeScale />
<TimeGrid />
{items.map((eventLocation) => (
<EventContainer key={eventLocation.id} location={eventLocation}>
<EventLocation location={eventLocation} />
</EventContainer>
))}
<ScrollForwardButton />
<ScrollBackwardButton />
</div>
</div>
);
}

0 comments on commit a676328

Please sign in to comment.