Skip to content

Commit

Permalink
stick rooms on screen top
Browse files Browse the repository at this point in the history
  • Loading branch information
dada878 committed Feb 15, 2024
1 parent fbdeb87 commit 0b53338
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions components/website/AgendaPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,22 @@ export default function Page({
))}
</div>
)}

<div className="container grid" style={timeTableStyle}>
{/* empty cell in left top */}
<div
style={{ gridColumn: "time", gridRow: "room", boxShadow: "rgba(177, 136, 76, 0.07) 0px 4px 2px -1px",
}}
className="bg-[#f8f3e8] sticky top-[80px] z-20 border-b-[#B1884C66] border-b mb-5"
></div>
{/* rooms */}
{rooms
.filter(() => !isMobile)
.map((room) => (
<div
key={room.id}
style={{ gridColumn: room.id, gridRow: "room / end" }}
className="p-3 text-center text-xl font-bold text-[#B1884C]"
style={{ gridColumn: room.id, gridRow: "room / end", boxShadow: "rgba(177, 136, 76, 0.07) 0px 4px 2px -1px" }}
className="py-3 mb-5 text-center text-xl font-bold text-[#B1884C] sticky self-start top-[80px] bg-[#f8f3e8] border-b-[#B1884C66] border-b"
>
{room.id}
</div>
Expand Down

0 comments on commit 0b53338

Please sign in to comment.