Skip to content

Commit

Permalink
Seee if this loads the right CSS in optimised build
Browse files Browse the repository at this point in the history
  • Loading branch information
bardsley committed Nov 28, 2024
1 parent ad6e4f2 commit 646fba0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/timetable/nownext/now-and-next.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ const SingleTimeSlot = ({session,numberOfSessions}) => {

const RoomHeaders = ({rooms,day,numberOfSessions}) => {
const gridSize = numberOfSessions < 2 ? 5 : numberOfSessions

return <div className={`grid grid-cols-${gridSize} `}>
{rooms.map((location)=>{ return <div className="bg-richblack-700 p-4 block text-center text-white text-xl font-bold uppercase " key={`${day}-${location}`}>{location}</div>})}
const gridCss = `grid-cols-${gridSize}`
return <div className={`grid ${gridCss}`}>
{rooms.map((location)=>{ return <div className="bg-richblack-700 p-4 block text-center text-white text-xl font-bold uppercase col-span-1" key={`${day}-${location}`}>{location}{numberOfSessions}</div>})}
</div>

}
Expand Down

0 comments on commit 646fba0

Please sign in to comment.