From 25321cbd01b5823ef3279b0638678e8234cd180d Mon Sep 17 00:00:00 2001 From: Ross Zurowski Date: Thu, 11 Feb 2021 20:56:22 -0500 Subject: [PATCH] cmd/hello: truncate long strings (#1328) Signed-off-by: Ross Zurowski --- cmd/hello/hello.tmpl.html | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/cmd/hello/hello.tmpl.html b/cmd/hello/hello.tmpl.html index 238a2528b..ce64a615f 100644 --- a/cmd/hello/hello.tmpl.html +++ b/cmd/hello/hello.tmpl.html @@ -121,6 +121,10 @@ width: 100%; } + .min-width-0 { + min-width: 0; + } + .rounded-lg { border-radius: 0.5rem; } @@ -222,12 +226,23 @@ font-weight: 400; } + .truncate { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + .overflow-hidden { + overflow: hidden; + } + .profile-pic { width: 2.5rem; height: 2.5rem; border-radius: 9999px; background-size: cover; margin-right: 0.5rem; + flex-shrink: 0; } .panel { @@ -388,18 +403,18 @@ -
+
-
+
{{ with .DisplayName }} -

{{.}}

+

{{.}}

{{ end }} -
{{.LoginName}}
+
{{.LoginName}}
-
+
@@ -407,7 +422,7 @@ -

{{.MachineName}}

+

{{.MachineName}}

{{.IP}}