Adjust mobile navbar user layout

Center the username between the toggle and sign-out on mobile and remove hard name truncation.
This commit is contained in:
Mathieu Moran
2026-01-26 19:27:57 -05:00
parent cf57eee5a3
commit 0ae3af13f1
3 changed files with 34 additions and 18 deletions
+1 -4
View File
@@ -42,10 +42,7 @@
}
const name = decoded.name || '';
const maxNameLength = 15;
const displayName = name.length > maxNameLength
? name.slice(0, Math.max(0, maxNameLength - 3)) + '...'
: name;
const displayName = name;
const nameTargets = document.querySelectorAll('[data-user-name]');
if (nameTargets.length) {
nameTargets.forEach((el) => {