From 8d3c7303cf8759d9921d9b0d7eeaab8f6b67ced0 Mon Sep 17 00:00:00 2001 From: eti Date: Sat, 19 Sep 2026 03:05:31 +0200 Subject: [PATCH] web/profile: rescale profile and organization views Signed-off-by: eti --- .../lib/components/profile/AvatarList.svelte | 4 +-- .../profile/FollowCard.stories.svelte | 2 -- .../lib/components/profile/FollowCard.svelte | 4 +-- .../profile/FollowCardContent.svelte | 14 +++++----- .../profile/FollowerFollowing.svelte | 4 +-- .../components/profile/NetworkVouches.svelte | 24 ++++++++++++----- .../lib/components/profile/PagedList.svelte | 8 +++--- .../profile/PinnedRepositories.svelte | 8 +++--- .../profile/ProfileActivityChart.svelte | 10 +++---- .../components/profile/ProfileEditForm.svelte | 16 ++++++------ .../components/profile/ProfilePopover.svelte | 18 ++++++------- .../profile/ProfileSocialLinks.svelte | 16 +++++++----- .../profile/StringCard.stories.svelte | 3 --- .../lib/components/profile/StringCard.svelte | 4 +-- .../profile/StringCardContent.svelte | 10 ++++--- .../profile/UserProfileChrome.svelte | 24 ++++++++--------- .../profile/VouchButton.stories.svelte | 4 +-- .../lib/components/profile/VouchButton.svelte | 16 ++++++------ .../lib/components/profile/VouchCard.svelte | 6 ++--- .../organization/OrganizationChrome.svelte | 26 +++++++++---------- .../OrganizationMembersTab.svelte | 6 ++--- .../OrganizationOverviewTab.svelte | 14 +++++----- .../profile/tabs/OverviewTab.svelte | 2 +- .../components/profile/tabs/PeopleTab.svelte | 2 +- .../profile/tabs/RepoListTab.svelte | 11 ++++---- .../components/profile/tabs/StarredTab.svelte | 2 +- .../components/profile/tabs/VouchTab.svelte | 2 +- 27 files changed, 133 insertions(+), 127 deletions(-) diff --git a/web/src/lib/components/profile/AvatarList.svelte b/web/src/lib/components/profile/AvatarList.svelte index 0b42fbc6c..cf3bf39d3 100644 --- a/web/src/lib/components/profile/AvatarList.svelte +++ b/web/src/lib/components/profile/AvatarList.svelte @@ -34,7 +34,7 @@ {/snippet} -
+
{#each shown as person, i (person.did)}
@@ -49,6 +49,6 @@ {/each} {#if overflow > 0} - +{overflow} + +{overflow} {/if}
diff --git a/web/src/lib/components/profile/FollowCard.stories.svelte b/web/src/lib/components/profile/FollowCard.stories.svelte index 8bc825b02..67710c821 100644 --- a/web/src/lib/components/profile/FollowCard.stories.svelte +++ b/web/src/lib/components/profile/FollowCard.stories.svelte @@ -24,13 +24,11 @@ }, argTypes: { border: { control: "boolean" }, - shadow: { control: "boolean" }, background: { control: "boolean" } }, args: { person, border: false, - shadow: false, background: false } }); diff --git a/web/src/lib/components/profile/FollowCard.svelte b/web/src/lib/components/profile/FollowCard.svelte index 4d6e7078d..afc24828f 100644 --- a/web/src/lib/components/profile/FollowCard.svelte +++ b/web/src/lib/components/profile/FollowCard.svelte @@ -6,7 +6,6 @@ let { person, border = false, - shadow = false, background = false, followButton = true, onFollow @@ -14,12 +13,11 @@ person: PersonData; onFollow?: (change: FollowChange) => void; border?: CardVariants["border"]; - shadow?: CardVariants["shadow"]; background?: CardVariants["background"]; followButton?: boolean; } = $props(); - + diff --git a/web/src/lib/components/profile/FollowCardContent.svelte b/web/src/lib/components/profile/FollowCardContent.svelte index 06dfafbcf..7c72c3927 100644 --- a/web/src/lib/components/profile/FollowCardContent.svelte +++ b/web/src/lib/components/profile/FollowCardContent.svelte @@ -29,17 +29,17 @@ }; -
-
+
+
-
+
{person.handle} @@ -50,12 +50,12 @@ {/if}
{#if person.description} -

+

{person.description}

{/if} -
- +
+
- + {formatCount(followers)} followers import { resolve } from "$app/paths"; + import Shield from "$icon/shield"; import AvatarList from "$lib/components/profile/AvatarList.svelte"; import type { NetworkVouch } from "$lib/components/profile/types"; + import Link from "$lib/components/ui/Link.svelte"; interface Props { // handle of the profile these vouches are about @@ -36,21 +38,29 @@
{#if vouchers.length > 0}
- - Vouched for by {vouchers.length} - {plural(vouchers.length)} - + + + + Vouched for by {vouchers.length} + {plural(vouchers.length)} +
{/if} {#if denouncers.length > 0}
- + Denounced by {denouncers.length} {plural(denouncers.length)} diff --git a/web/src/lib/components/profile/PagedList.svelte b/web/src/lib/components/profile/PagedList.svelte index 904fedf39..be69682fb 100644 --- a/web/src/lib/components/profile/PagedList.svelte +++ b/web/src/lib/components/profile/PagedList.svelte @@ -28,7 +28,7 @@ total, title, emptyMessage, - listClass = "flex flex-col gap-3", + listClass = "flex flex-col gap-sm", key, row, header @@ -51,19 +51,19 @@ {/if} {#snippet footer()} {#if pages > 1} -
+
{/if} {#if pager.state.kind === "failed"} - + {/if} {/snippet} diff --git a/web/src/lib/components/profile/PinnedRepositories.svelte b/web/src/lib/components/profile/PinnedRepositories.svelte index 9e786ac7c..e08591825 100644 --- a/web/src/lib/components/profile/PinnedRepositories.svelte +++ b/web/src/lib/components/profile/PinnedRepositories.svelte @@ -16,15 +16,15 @@ let { repositories, handle, href, showOwner = false }: Props = $props(); -
-

Pinned repositories

+
+

Pinned repositories

{#if repositories.length > 0} -
+
{#each repositories.slice(0, 4) as repo (repoKey(repo))} {/each}
-
+