Skip to content

Commit

Permalink
style: don't allow names to overflow their cards in the people list.
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag committed Jan 22, 2025
1 parent 9ab5942 commit f7e54a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/(app)/people/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@
<div
class="card relative flex max-w-sm flex-col items-center rounded-lg border-2 border-surface-400 !bg-surface-50/20 px-5 py-8 transition-transform duration-200 hover:scale-105"
>
<div class="flex flex-col items-center gap-6 text-center">
<div class="flex flex-col flex-wrap items-center gap-7">
<div class="flex flex-col items-center gap-6 text-center max-w-full">
<div class="flex flex-col flex-wrap items-center gap-7 max-w-full">
<Avatar width="w-[8em]" src={`/${profile.username}/avatar`} />
<a href={`/${profile.username}`} class="card-link flex flex-col gap-2">
<h2 class="font-rubik text-2xl font-semibold">
<a href={`/${profile.username}`} class="card-link flex flex-col gap-2 max-w-full">
<h2 class="font-rubik text-2xl font-semibold break-words max-w-full">
{profile.display_name}
</h2>
<h2 class="font-uncut font-semibold">
Expand Down

0 comments on commit f7e54a7

Please sign in to comment.