design: improve small screen support

This commit is contained in:
Xylight committed 2024-07-09 16:21:37 -07:00
1 parent 2da953dd79
commit 2f8474c71c
3 files changed
+23 -8

No files matched your search

@@ -32,7 +32,7 @@
class="flex gap-0 items-center flex-shrink max-w-full min-w-0"
class:ml-0.5={avatar}
>
<span class:font-medium={showInstance}>
<span class:font-medium={showInstance} class="username-text">
{$userSettings.displayNames ? user.display_name || user.name : user.name}
</span>
{#if showInstance}
@@ -62,6 +62,14 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
max-width: 100%;
flex: 1;
}
.username-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>