From b8829bf892ea8f33b84cb66858b95bd73a502e45 Mon Sep 17 00:00:00 2001 From: "nise.moe" Date: Sat, 17 Feb 2024 21:02:16 +0100 Subject: [PATCH] Fixed display of possibly long usernames when logged in --- nise-frontend/src/app/app.component.css | 9 +++++++++ nise-frontend/src/app/app.component.html | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/nise-frontend/src/app/app.component.css b/nise-frontend/src/app/app.component.css index e69de29..8164a73 100644 --- a/nise-frontend/src/app/app.component.css +++ b/nise-frontend/src/app/app.component.css @@ -0,0 +1,9 @@ +.user-details { + max-width: 100px; + margin-right: 5px; + white-space: nowrap; + text-overflow: clip ellipsis; + display: inline-block; + overflow: hidden; + vertical-align: bottom; +} diff --git a/nise-frontend/src/app/app.component.html b/nise-frontend/src/app/app.component.html index bbe8bd4..cfb1599 100644 --- a/nise-frontend/src/app/app.component.html +++ b/nise-frontend/src/app/app.component.html @@ -14,9 +14,9 @@
-
+
- hi, {{this.userService.currentUser?.username}} Logout + hi, {{this.userService.currentUser?.username}} Logout Login @@ -26,5 +26,5 @@
- v20240214 + v20240217