diff --git a/backend/static/css/components.css b/backend/static/css/components.css index dd69fdd..aa7f45c 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -3670,6 +3670,28 @@ html.modal-open { } .forum-report-btn:hover { opacity: 1; } +/* Icon-only Action-Button (Bearbeiten, Löschen, Melden) */ +.forum-icon-btn { + display: flex; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + padding: 0; + border: none; + border-radius: var(--radius-md); + background: transparent; + color: var(--c-text-muted); + cursor: pointer; + opacity: 0.65; + transition: opacity 0.15s, background 0.15s; + flex-shrink: 0; +} +.forum-icon-btn:hover { opacity: 1; background: var(--c-surface-2); } +.forum-icon-btn:active { background: var(--c-border); } +.forum-icon-btn--danger { color: var(--c-danger); } +.forum-icon-btn--danger:hover { background: rgba(239,68,68,0.08); } + /* Posts section */ .forum-posts-section { display: flex; flex-direction: column; gap: var(--space-1); } .forum-posts-divider { diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 6ebc64f..b088eaf 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '215'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '216'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const App = (() => { diff --git a/backend/static/js/pages/forum.js b/backend/static/js/pages/forum.js index c7ccb88..d97e174 100644 --- a/backend/static/js/pages/forum.js +++ b/backend/static/js/pages/forum.js @@ -386,11 +386,12 @@ window.Page_forum = (() => { `; const footer = _appState.user ? ` - ${(isOwn || isMod) ? `` : ''} - ${isOwn ? `` : ''} - - ${(!thread.is_locked && _appState.user) ? `` : ''} - ` : ``; + ${(isOwn || isMod) ? `` : ''} + ${isOwn ? `` : ''} +
+ + ${(!thread.is_locked && _appState.user) ? `` : ''} + ` : ``; UI.modal.open({ title: `${UI.icon('chat-circle-dots')} ${_esc(thread.titel)}`, body, footer }); @@ -569,9 +570,11 @@ window.Page_forum = (() => { - ${(!isOwn && uid) ? `` : ''} - ${isOwn ? `` : ''} - ${canDelete ? `` : ''} + ${(!isOwn && uid) ? `` : ''} +
+ ${isOwn ? `` : ''} + ${canDelete ? `` : ''} +
`; } diff --git a/backend/static/sw.js b/backend/static/sw.js index 175f712..416e11e 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v238'; +const CACHE_VERSION = 'by-v239'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten