Skip to content

Commit

Permalink
🐛 render special rooms in special color and adjust legend to theme
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildmodeOne committed Sep 29, 2023
1 parent ac164b5 commit bfb7c3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion rogue-thi-app/components/RoomMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ export default function RoomMap ({ highlight, roomData }) {
positions={entry.coordinates}
pathOptions={{
...entry.options,
className: special ? special.color : (avail ? styles.roomAvailable : styles.roomOccupied)
color: special && avail ? special.color : null,
className: `${avail ? (!special ? styles.roomAvailable : '') : styles.roomOccupied}`
}}
/>
</FeatureGroup>
Expand Down
4 changes: 2 additions & 2 deletions rogue-thi-app/styles/RoomMap.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
height: 1em;
margin-bottom: -2px;
border-radius: 0.5em;
background-color: #8845ef;
background-color: var(--primary);
}

.roomAvailable {
Expand All @@ -94,7 +94,7 @@
height: 1em;
margin-bottom: -2px;
border-radius: 0.5em;
background-color: #6c757d;
background-color: var(--gray);
}

.legendSpecial::before {
Expand Down

0 comments on commit bfb7c3a

Please sign in to comment.