1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-12 20:09:59 +00:00

fix: too long username cause scroll horizontally (#274)

This commit is contained in:
Ayaka Rizumu 2022-12-01 22:55:49 +08:00 committed by GitHub
parent 285776d453
commit 62053d00dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ const serverName = $computed(() => getServerName(account))
</script>
<template>
<p>
<p line-clamp-1 whitespace-pre-wrap break-all text-secondary-light>
<span text-secondary>{{ getShortHandle(account) }}</span>
<span v-if="serverName" text-secondary-light>@{{ serverName }}</span>
</p>

View file

@ -21,7 +21,7 @@ defineOptions({
</AccountHoverWrapper>
<div flex="~ col" shrink overflow-hidden>
<ContentRich font-bold :content="getDisplayName(account, { rich: true })" :emojis="account.emojis" overflow-hidden truncate text-ellipsis />
<AccountHandle :account="account" text-sm overflow-hidden truncate text-ellipsis text-secondary-light />
<AccountHandle :account="account" text-sm text-secondary-light />
</div>
</component>
</template>