fix(admin): truncate and copy the login-overview IP address

A long IPv6 in the login overview forced the table to scroll sideways and
the full address was awkward to lift out. Cap the cell, ellipsize the
address, and make it a button that copies the full value to the clipboard
with a transient checkmark and a toast — keyboard-activatable, with an
accessible label. The empty case stays plain text.
This commit is contained in:
Marc-André Bombeck committed 2026-06-30 18:24:15 +02:00
1 parent 45ca6ff24b
commit 2ed73a3a34
7 files changed
+75 -7

No files matched your search

+4 -1
View File
@@ -5883,7 +5883,10 @@
"mfaEnforcedOn": "MFA an",
"mfaEnforcedOff": "MFA aus",
"mfaEnforcedOnHint": "Für diesen Nutzer ist ein zweiter Faktor erforderlich. Klicken, um die Anforderung aufzuheben.",
"mfaEnforcedOffHint": "Einen zweiten Faktor für diesen Nutzer verlangen."
"mfaEnforcedOffHint": "Einen zweiten Faktor für diesen Nutzer verlangen.",
"copyIp": "IP-Adresse kopieren",
"ipCopied": "IP-Adresse kopiert",
"copyFailed": "Kopieren fehlgeschlagen."
},
"achievements": {
"title": "Erfolge",
+4 -1
View File
@@ -5883,7 +5883,10 @@
"mfaEnforcedOn": "MFA on",
"mfaEnforcedOff": "MFA off",
"mfaEnforcedOnHint": "A second factor is required for this user. Click to stop requiring it.",
"mfaEnforcedOffHint": "Require a second factor for this user."
"mfaEnforcedOffHint": "Require a second factor for this user.",
"copyIp": "Copy IP address",
"ipCopied": "IP address copied",
"copyFailed": "Could not copy."
},
"achievements": {
"title": "Achievements",
+4 -1
View File
@@ -5883,7 +5883,10 @@
"mfaEnforcedOn": "MFA activado",
"mfaEnforcedOff": "MFA desactivado",
"mfaEnforcedOnHint": "Este usuario debe usar un segundo factor. Haz clic para dejar de exigirlo.",
"mfaEnforcedOffHint": "Exigir un segundo factor a este usuario."
"mfaEnforcedOffHint": "Exigir un segundo factor a este usuario.",
"copyIp": "Copiar dirección IP",
"ipCopied": "Dirección IP copiada",
"copyFailed": "No se pudo copiar."
},
"achievements": {
"title": "Logros",
+4 -1
View File
@@ -5883,7 +5883,10 @@
"mfaEnforcedOn": "MFA activé",
"mfaEnforcedOff": "MFA désactivé",
"mfaEnforcedOnHint": "Un second facteur est requis pour cet utilisateur. Cliquez pour ne plus l'exiger.",
"mfaEnforcedOffHint": "Exiger un second facteur pour cet utilisateur."
"mfaEnforcedOffHint": "Exiger un second facteur pour cet utilisateur.",
"copyIp": "Copier l’adresse IP",
"ipCopied": "Adresse IP copiée",
"copyFailed": "Impossible de copier."
},
"achievements": {
"title": "Réussites",
+4 -1
View File
@@ -5883,7 +5883,10 @@
"mfaEnforcedOn": "MFA attivo",
"mfaEnforcedOff": "MFA disattivato",
"mfaEnforcedOnHint": "Per questo utente è richiesto un secondo fattore. Clicca per non richiederlo più.",
"mfaEnforcedOffHint": "Richiedi un secondo fattore per questo utente."
"mfaEnforcedOffHint": "Richiedi un secondo fattore per questo utente.",
"copyIp": "Copia indirizzo IP",
"ipCopied": "Indirizzo IP copiato",
"copyFailed": "Impossibile copiare."
},
"achievements": {
"title": "Obiettivi",
+4 -1
View File
@@ -5883,7 +5883,10 @@
"mfaEnforcedOn": "MFA wł.",
"mfaEnforcedOff": "MFA wył.",
"mfaEnforcedOnHint": "Ten użytkownik musi używać drugiego składnika. Kliknij, aby przestać go wymagać.",
"mfaEnforcedOffHint": "Wymagaj drugiego składnika dla tego użytkownika."
"mfaEnforcedOffHint": "Wymagaj drugiego składnika dla tego użytkownika.",
"copyIp": "Kopiuj adres IP",
"ipCopied": "Skopiowano adres IP",
"copyFailed": "Nie udało się skopiować."
},
"achievements": {
"title": "Osiągnięcia",