fix: too long username cause scroll horizontally (#299)
regression #274
This commit is contained in:
parent
3d395a02ec
commit
c197d7dfca
|
@ -9,7 +9,8 @@ const serverName = $computed(() => getServerName(account))
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<p ws-nowrap text-ellipsis of-hidden text-secondary-light>
|
||||
<p line-clamp-1 whitespace-pre-wrap break-all text-secondary-light>
|
||||
<!-- 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>
|
||||
</p>
|
||||
|
|
Loading…
Reference in a new issue