mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
Fix ADS-B dashboard mobile layout and map rendering
- Add mobile CSS for dashboard to allow scrolling and proper stacking - Set explicit height for map container on mobile (50vh min 300px) - Remove sidebar max-height restriction on mobile - Add map invalidateSize() on init, resize, and orientation change - Fix controls bar wrapping and touch-friendly zoom controls - Simplify header layout on mobile Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1392,8 +1392,25 @@ sudo make install</code>
|
||||
|
||||
// Draw range rings after map is ready
|
||||
setTimeout(() => drawRangeRings(), 100);
|
||||
|
||||
// Fix map size on mobile after initialization
|
||||
setTimeout(() => {
|
||||
if (radarMap) radarMap.invalidateSize();
|
||||
}, 200);
|
||||
}
|
||||
|
||||
// Handle window resize for map (especially important on mobile)
|
||||
window.addEventListener('resize', function() {
|
||||
if (radarMap) radarMap.invalidateSize();
|
||||
});
|
||||
|
||||
// Handle orientation changes for mobile devices
|
||||
window.addEventListener('orientationchange', function() {
|
||||
setTimeout(() => {
|
||||
if (radarMap) radarMap.invalidateSize();
|
||||
}, 200);
|
||||
});
|
||||
|
||||
// ============================================
|
||||
// TRACKING CONTROL
|
||||
// ============================================
|
||||
|
||||
Reference in New Issue
Block a user