Fix: Gassi Desktop-Layout — Liste links + Karte rechts, Toggle ausgeblendet (SW by-v881)
This commit is contained in:
parent
bf1087c5e1
commit
79cfd63ea6
6 changed files with 59 additions and 12 deletions
|
|
@ -3539,6 +3539,50 @@ html.modal-open {
|
|||
#walks-map-view {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* ── Desktop ≥1024px: Liste links, Karte rechts nebeneinander ── */
|
||||
@media (min-width: 1024px) {
|
||||
/* Tab-Treffen: horizontal splitten */
|
||||
#walks-tab-treffen {
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
/* Toolbar über beiden Spalten → eigene Zeile */
|
||||
#walks-tab-treffen .by-toolbar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 10;
|
||||
background: var(--c-bg);
|
||||
border-bottom: 1px solid var(--c-border);
|
||||
padding: var(--space-2) var(--space-4);
|
||||
}
|
||||
/* Platz für die fixe Toolbar oben */
|
||||
#walks-tab-treffen {
|
||||
padding-top: 52px;
|
||||
position: relative;
|
||||
}
|
||||
/* Liste: feste Breite links, scrollbar */
|
||||
#walks-list-view {
|
||||
display: block !important;
|
||||
width: 380px;
|
||||
min-width: 320px;
|
||||
flex-shrink: 0;
|
||||
border-right: 1px solid var(--c-border);
|
||||
overflow-y: auto;
|
||||
}
|
||||
/* Karte: Rest des Platzes, sticky */
|
||||
#walks-map-view {
|
||||
display: block !important;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
/* Liste/Karte-Toggle auf Desktop ausblenden */
|
||||
.walks-view-toggle {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.walks-participant {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
|||
|
|
@ -101,9 +101,9 @@
|
|||
</script>
|
||||
|
||||
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=880">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=880">
|
||||
<link rel="stylesheet" href="/css/components.css?v=880">
|
||||
<link rel="stylesheet" href="/css/design-system.css?v=881">
|
||||
<link rel="stylesheet" href="/css/layout.css?v=881">
|
||||
<link rel="stylesheet" href="/css/components.css?v=881">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
@ -583,10 +583,10 @@
|
|||
<div id="modal-container"></div>
|
||||
|
||||
<!-- JS: Reihenfolge ist wichtig — erst Basis, dann Features -->
|
||||
<script src="/js/api.js?v=880"></script>
|
||||
<script src="/js/ui.js?v=880"></script>
|
||||
<script src="/js/app.js?v=880"></script>
|
||||
<script src="/js/worlds.js?v=880"></script>
|
||||
<script src="/js/api.js?v=881"></script>
|
||||
<script src="/js/ui.js?v=881"></script>
|
||||
<script src="/js/app.js?v=881"></script>
|
||||
<script src="/js/worlds.js?v=881"></script>
|
||||
|
||||
<!-- Feature-Seiten werden lazy geladen -->
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '880'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '881'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt
|
||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||
// Cache-Bust-Parameter nach Update-Reload sofort entfernen
|
||||
|
|
|
|||
|
|
@ -55,6 +55,8 @@ window.Page_walks = (() => {
|
|||
_container = container;
|
||||
_appState = appState;
|
||||
_render();
|
||||
// Desktop: Leaflet sofort laden damit Karte bereit ist wenn Daten kommen
|
||||
if (window.innerWidth >= 1024) UI.loadLeaflet();
|
||||
try { _userPos = await API.getLocation(); } catch {}
|
||||
_loadData();
|
||||
}
|
||||
|
|
@ -101,8 +103,9 @@ window.Page_walks = (() => {
|
|||
<p style="color:var(--c-text-secondary);text-align:center;padding:var(--space-8)">Lädt…</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Karte -->
|
||||
<div id="walks-map-view" class="walks-content" style="display:none">
|
||||
<!-- Karte (auf Desktop immer sichtbar via CSS) -->
|
||||
<div id="walks-map-view" class="walks-content"
|
||||
style="${window.innerWidth >= 1024 ? '' : 'display:none'}">
|
||||
<div id="walks-map" class="walks-map"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Offline-Cache + Push Notifications + Tile-Cache
|
||||
============================================================ */
|
||||
|
||||
const CACHE_VERSION = 'by-v880';
|
||||
const CACHE_VERSION = 'by-v881';
|
||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue