Skip to content

Commit f7e54a7

Browse files
committed
style: don't allow names to overflow their cards in the people list.
1 parent 9ab5942 commit f7e54a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/routes/(app)/people/+page.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@
8282
<div
8383
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"
8484
>
85-
<div class="flex flex-col items-center gap-6 text-center">
86-
<div class="flex flex-col flex-wrap items-center gap-7">
85+
<div class="flex flex-col items-center gap-6 text-center max-w-full">
86+
<div class="flex flex-col flex-wrap items-center gap-7 max-w-full">
8787
<Avatar width="w-[8em]" src={`/${profile.username}/avatar`} />
88-
<a href={`/${profile.username}`} class="card-link flex flex-col gap-2">
89-
<h2 class="font-rubik text-2xl font-semibold">
88+
<a href={`/${profile.username}`} class="card-link flex flex-col gap-2 max-w-full">
89+
<h2 class="font-rubik text-2xl font-semibold break-words max-w-full">
9090
{profile.display_name}
9191
</h2>
9292
<h2 class="font-uncut font-semibold">

0 commit comments

Comments
 (0)