mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
fix(admin): restore Standort column on Login-Übersicht
The Standort column existed but rendered right-aligned next to a right-aligned IP and timestamp, which pushed it into the gutter on wide audit tables and let admins overlook it entirely. Left-align the IP and Location cells (timestamp keeps the right edge as the sort anchor) and prefix the Standort header with a MapPin glyph so the column is a first-class entry instead of a forgotten trailer.
This commit is contained in:
1 parent
ebde50d1c5
commit
6d6f4c4efb
1 file changed
+18
-5
@@ -7,6 +7,7 @@ import {
|
||||
ChevronDown,
|
||||
Download,
|
||||
Loader2,
|
||||
MapPin,
|
||||
ScrollText,
|
||||
XCircle,
|
||||
} from "lucide-react";
|
||||
@@ -367,11 +368,23 @@ export function LoginOverviewSection() {
|
||||
<th className="px-3 py-2 text-left font-medium">
|
||||
{t("admin.action")}
|
||||
</th>
|
||||
<th className="px-3 py-2 text-right font-medium">
|
||||
<th className="px-3 py-2 text-left font-medium">
|
||||
{t("admin.ip")}
|
||||
</th>
|
||||
<th className="px-3 py-2 text-right font-medium">
|
||||
{t("admin.location")}
|
||||
{/*
|
||||
v1.4.25 W8b — Standort column. Previously rendered
|
||||
`text-right`, which on wide audit tables let the
|
||||
`Berlin, DE` label drift to the table edge and
|
||||
blend into the timestamp gutter. Left-aligning it
|
||||
(and dropping the `text-right` from IP for
|
||||
consistency) makes Standort a first-class column
|
||||
that admins actually notice.
|
||||
*/}
|
||||
<th className="px-3 py-2 text-left font-medium">
|
||||
<span className="inline-flex items-center gap-1">
|
||||
<MapPin className="h-3 w-3" aria-hidden="true" />
|
||||
{t("admin.location")}
|
||||
</span>
|
||||
</th>
|
||||
<th className="px-3 py-2 text-right font-medium">
|
||||
{t("admin.timestamp")}
|
||||
@@ -403,10 +416,10 @@ export function LoginOverviewSection() {
|
||||
>
|
||||
{AUTH_ACTION_LABELS[entry.action] ?? entry.action}
|
||||
</td>
|
||||
<td className="text-muted-foreground px-3 py-2 text-right font-mono text-xs">
|
||||
<td className="text-muted-foreground px-3 py-2 font-mono text-xs">
|
||||
{entry.ipAddress ?? "—"}
|
||||
</td>
|
||||
<td className="text-muted-foreground px-3 py-2 text-right text-xs">
|
||||
<td className="text-muted-foreground px-3 py-2 text-xs">
|
||||
{entry.location ?? "—"}
|
||||
</td>
|
||||
<td className="text-muted-foreground px-3 py-2 text-right text-xs whitespace-nowrap">
|
||||
|
||||
Reference in new issue
Block a user