Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions frontend/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ select:disabled,
}
}

.dark .leaflet-container {
background-color: #1a1a1a;
}
Comment thread
Saurabh-2607 marked this conversation as resolved.

.dark .leaflet-popup-content-wrapper {
background-color: #2c3e50 !important;
color: white !important;
Expand Down Expand Up @@ -464,3 +468,7 @@ select:disabled,
@apply visible opacity-100;
}
}

.leaflet-container {
background: transparent !important;
}
4 changes: 2 additions & 2 deletions frontend/src/components/ChapterMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,15 @@ const ChapterMap = ({
return (
<section
aria-label="Chapter Map"
className="relative"
className="relative z-0 overflow-hidden rounded-lg bg-slate-200 dark:bg-[#1a1a1a] isolate"
style={style}
onMouseLeave={() => setIsMapActive(false)}
>
<MapContainer
center={[20, 0]}
zoom={2}
scrollWheelZoom={isMapActive}
style={{ height: '100%', width: '100%' }}
style={{ height: '100%', width: '100%', outline: 'none', background: 'transparent' }}
zoomControl={false}
minZoom={1}
maxZoom={18}
Expand Down
Loading