Colour events to make them visible
This commit is contained in:
parent
093a6816bc
commit
1217104cd2
2 changed files with 10 additions and 2 deletions
|
@ -38,5 +38,9 @@
|
|||
}
|
||||
|
||||
.break {
|
||||
background-color: rgb(78, 78, 143);
|
||||
background-color: color-mix(in oklab, var(--background), rgb(50, 50, 255) 60%);
|
||||
}
|
||||
|
||||
.event {
|
||||
background-color: color-mix(in oklab, var(--background), rgb(255, 125, 50) 60%);
|
||||
}
|
||||
|
|
|
@ -387,7 +387,11 @@ export default function Timetable() {
|
|||
<tbody>
|
||||
{locations.map(location => <tr key={location.id}>
|
||||
<th>{location.name}</th>
|
||||
{locationRows.get(location.id)!.map((row, index) => <td key={index} colSpan={row.span}>
|
||||
{locationRows.get(location.id)!.map((row, index) => <td
|
||||
key={index}
|
||||
colSpan={row.span}
|
||||
className={row.slots.size ? styles.event : undefined}
|
||||
>
|
||||
{[...row.slots].map(slot => eventBySlotId.get(slot.id)!.name).join(", ")}
|
||||
</td>)}
|
||||
</tr>)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue