fix: user server name getting clipped (#1308)

Closes https://github.com/elk-zone/elk/issues/1300
This commit is contained in:
webfansplz 2023-01-20 00:34:33 +08:00 committed by GitHub
parent 0f5476c190
commit 5465409fcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ const serverName = $computed(() => getServerName(account))
</script>
<template>
<p line-clamp-1 whitespace-pre-wrap break-all text-secondary-light dir="ltr">
<p line-clamp-1 whitespace-pre-wrap break-all text-secondary-light leading-tight dir="ltr">
<!-- fix: #274 only line-clamp-1 can be used here, using text-ellipsis is not valid -->
<span text-secondary>{{ getShortHandle(account) }}</span>
<span v-if="serverName" text-secondary-light>@{{ serverName }}</span>