From d755dcf68a8e04a7ff0bf421c1d0692a938a30bd Mon Sep 17 00:00:00 2001 From: Dicken Date: Fri, 29 May 2026 10:58:08 +0200 Subject: [PATCH] Schnellzugriff: Pfeile entfernt; Benutzerliste: mobil-optimiertes Layout --- frontend/src/App.jsx | 110 +++++++++++++++---------------------------- 1 file changed, 39 insertions(+), 71 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index f2fab86..a5c24ef 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -487,28 +487,6 @@ function QuickLinksCarousel({ links }) { ))} - {/* Left arrow */} - {canLeft && ( - - )} - - {/* Right arrow */} - {canRight && ( - - )} - {/* Page dots */} {pageCount > 1 && (
@@ -1841,75 +1819,65 @@ function UserManagement({ toast }) {
-
-
- {u.username} - {u.role} - {!!u.has_pushover && ( - πŸ”” Push - )} - {!!u.hidden && ( - πŸ‘ versteckt - )} - {u.last_active_at && ( + {/* Zeile 1: Name + Badges */} +
+
+
+ {u.username} + fontSize:9, fontFamily:'monospace', + color: u.role==='admin'?'#ffe66d':'#4ecdc4', + background: u.role==='admin'?'rgba(255,230,109,0.1)':'rgba(78,205,196,0.1)', + border:`1px solid ${u.role==='admin'?'rgba(255,230,109,0.3)':'rgba(78,205,196,0.3)'}`, + borderRadius:4, padding:'1px 6px', + }}>{u.role} + {!!u.has_pushover && ( + πŸ”” Push + )} + {!!u.hidden && ( + πŸ‘ versteckt + )} +
+ {u.last_active_at && ( +
● {(() => { const d = new Date(u.last_active_at.replace(' ','T')); - const now = new Date(); - const diff = Math.floor((now - d) / 60000); - if (diff < 2) return 'gerade eben'; - if (diff < 60) return `vor ${diff} min`; + const diff = Math.floor((new Date() - d) / 60000); + if (diff < 2) return 'gerade eben'; + if (diff < 60) return `vor ${diff} min`; if (diff < 1440) return `vor ${Math.floor(diff/60)} h`; - return d.toLocaleDateString('de-DE', {day:'2-digit',month:'2-digit',hour:'2-digit',minute:'2-digit'}); + return d.toLocaleDateString('de-DE',{day:'2-digit',month:'2-digit',hour:'2-digit',minute:'2-digit'}); })()} - +
)}
-
+ {/* Aktions-Buttons */} +
+ style={{...S.btn('#ffe66d',true),fontSize:10,padding:'4px 8px'}}>πŸ”‘ - +