Skip to content

Commit

Permalink
Improve ellipsis usage (#1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye authored Nov 4, 2024
1 parent 995de87 commit d9133b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/src/lib/app.postcss
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ img[src*="onestory-editor-logo"] {
.x-ellipsis {
max-width: 100%;
overflow: hidden;
overflow-x: clip;
text-overflow: ellipsis;
/* Ensures dangling letters are not clipped (e.g. "g") */
line-height: 1.3em;
}
6 changes: 5 additions & 1 deletion frontend/src/lib/components/Users/UserTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@
</td>
<td class="hidden @2xl:table-cell">
{#if user.username}
{user.username}
<span class="inline-flex max-w-40">
<span class="x-ellipsis" title={user.username}>
{user.username}
</span>
</span>
{:else}
{/if}
Expand Down

0 comments on commit d9133b6

Please sign in to comment.