Weiter an den Locations gearbeitet
Some checks failed
Host-Based Deploy (Java 21 Fix) / build-and-run (push) Has been cancelled

This commit is contained in:
2026-04-06 22:48:34 +02:00
parent 0f9f109067
commit 5ffb99c9b5
81 changed files with 2817 additions and 352 deletions

View File

@@ -121,6 +121,8 @@
</svg>
<span class="filter-badge" id="filterBadge" style="display:none;position:absolute;top:-3px;right:-3px;"></span>
</button>
<button id="createLocBtn" class="btn" onclick="openCreateModal()"
style="display:none;padding:0.35rem 0.85rem;font-size:0.85rem;">+ Location anlegen</button>
</div>
</div>
@@ -134,9 +136,6 @@
<!-- ── Meine Locations ──────────────────────────────────────────── -->
<div id="paneMine" class="tab-panel">
<div style="display:flex; justify-content:flex-end; margin-bottom:1rem;">
<button class="btn" onclick="openCreateModal()">+ Location anlegen</button>
</div>
<div class="loc-grid" id="mineGrid"></div>
<p class="empty-hint" id="mineEmpty" style="display:none;">Du hast noch keine Locations angelegt.</p>
</div>
@@ -228,6 +227,8 @@ function switchTab(name, btn) {
document.querySelectorAll('.tab-panel').forEach(p => p.classList.remove('active'));
btn.classList.add('active');
document.getElementById('pane' + name.charAt(0).toUpperCase() + name.slice(1)).classList.add('active');
document.getElementById('filterOpenBtn').style.display = name === 'search' ? '' : 'none';
document.getElementById('createLocBtn').style.display = name === 'mine' ? '' : 'none';
}
// ── Filter-Drawer ─────────────────────────────────────────────────────────────
@@ -378,8 +379,8 @@ async function loadNextBatch() {
const a = document.createElement('a');
a.className = 'loc-card';
a.href = `/community/location-detail.html?id=${p.locationId}`;
const imgHtml = p.profilePictureLq
? `<img src="data:image/jpeg;base64,${p.profilePictureLq}" alt="${escHtml(p.name)}">`
const imgHtml = p.profilePictureHq
? `<img src="data:image/jpeg;base64,${p.profilePictureHq}" alt="${escHtml(p.name)}">`
: '<span>📍</span>';
a.innerHTML = `
<div class="loc-card-img">${imgHtml}</div>
@@ -421,8 +422,8 @@ async function loadMine() {
const a = document.createElement('a');
a.className = 'loc-card';
a.href = `/community/location-detail.html?id=${p.locationId}`;
const imgHtml = p.profilePictureLq
? `<img src="data:image/jpeg;base64,${p.profilePictureLq}" alt="${escHtml(p.name)}">`
const imgHtml = p.profilePictureHq
? `<img src="data:image/jpeg;base64,${p.profilePictureHq}" alt="${escHtml(p.name)}">`
: '<span>📍</span>';
a.innerHTML = `
<div class="loc-card-img">${imgHtml}</div>