mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-05-27 16:14:08 +00:00
fix: favorites dropdown transparent bg (var(--surface) didn't exist); live map uses light/dark tiles based on theme
This commit is contained in:
+2
-2
@@ -20,7 +20,7 @@
|
||||
<meta name="twitter:title" content="MeshCore Analyzer">
|
||||
<meta name="twitter:description" content="Real-time MeshCore LoRa mesh network analyzer — live packet visualization, node tracking, channel decryption, and route analysis.">
|
||||
<meta name="twitter:image" content="https://raw.githubusercontent.com/Kpa-clawbot/meshcore-analyzer/master/public/og-image.png">
|
||||
<link rel="stylesheet" href="style.css?v=1773961481">
|
||||
<link rel="stylesheet" href="style.css?v=1773961528">
|
||||
<link rel="stylesheet" href="home.css">
|
||||
<link rel="stylesheet" href="live.css?v=1774080600">
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
|
||||
@@ -84,7 +84,7 @@
|
||||
<script src="nodes.js?v=1773961481" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="traces.js?v=1774079160" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="analytics.js?v=1773961035" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="live.js?v=1774079160" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="live.js?v=1773961528" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="observers.js?v=1774079160" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
<script src="node-analytics.js?v=1773961276" onerror="console.error('Failed to load:', this.src)"></script>
|
||||
</body>
|
||||
|
||||
+6
-1
@@ -640,7 +640,12 @@
|
||||
zoomAnimation: true, markerZoomAnimation: true
|
||||
}).setView([37.45, -122.0], 9);
|
||||
|
||||
L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png', { maxZoom: 19 }).addTo(map);
|
||||
const isDark = document.documentElement.getAttribute('data-theme') === 'dark' ||
|
||||
(document.documentElement.getAttribute('data-theme') !== 'light' && window.matchMedia('(prefers-color-scheme: dark)').matches);
|
||||
const tileUrl = isDark
|
||||
? 'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png'
|
||||
: 'https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png';
|
||||
L.tileLayer(tileUrl, { maxZoom: 19 }).addTo(map);
|
||||
L.control.zoom({ position: 'topright' }).addTo(map);
|
||||
|
||||
nodesLayer = L.layerGroup().addTo(map);
|
||||
|
||||
+1
-1
@@ -925,7 +925,7 @@ button.ch-item.selected { background: var(--selected-bg); }
|
||||
.nav-fav-dropdown {
|
||||
display: none; position: absolute; top: 100%; right: 0; z-index: 1000;
|
||||
min-width: 260px; max-height: 360px; overflow-y: auto;
|
||||
background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
|
||||
background: var(--surface-1, var(--detail-bg)); border: 1px solid var(--border); border-radius: 8px;
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,.15); margin-top: 6px;
|
||||
}
|
||||
.nav-fav-dropdown.open { display: block; }
|
||||
|
||||
Reference in New Issue
Block a user