From 6ace86a00e10f0bd1d3fd458ee21bda51287fa5a Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 24 Sep 2025 01:24:57 -0700 Subject: [PATCH] Fix various spacing and sizing issues on party details --- src/lib/components/party/Party.svelte | 23 +- .../party/PartySegmentedControl.svelte | 20 +- .../sidebar/DescriptionSidebar.svelte | 1 - .../segmented-control/rep-segment.module.scss | 4 +- .../segmented-control.module.scss | 195 ++- src/routes/[username]/+page.svelte | 152 +- src/routes/teams/new/+page.svelte | 1383 +++++++++-------- src/themes/_spacing.scss | 2 +- 8 files changed, 949 insertions(+), 831 deletions(-) diff --git a/src/lib/components/party/Party.svelte b/src/lib/components/party/Party.svelte index 4c5b66d0..6c2c7aba 100644 --- a/src/lib/components/party/Party.svelte +++ b/src/lib/components/party/Party.svelte @@ -747,14 +747,14 @@ alt={`Avatar of ${party.user.username}`} src={avatarSrc} srcset={avatarSrcSet} - width="40" - height="40" + width="32" + height="32" /> {:else} {/if} - @{party.user.username} + {party.user.username} {/if} @@ -940,17 +940,23 @@ width: 1200px; margin: 0 auto; padding: $unit-half; + gap: $unit-2x; + display: flex; + flex-direction: column; } .party-header { display: flex; justify-content: space-between; align-items: start; - margin-bottom: $unit-half; - padding: $unit-4x 0; + vertical-align: middle; + align-items: center; + padding: $unit-2x 0; } .party-info { + flex-grow: 1; + h1 { margin: 0 0 $unit-fourth 0; font-size: $font-xlarge; @@ -981,8 +987,8 @@ } .avatar-wrapper { - width: $unit-5x; - height: $unit-5x; + width: $unit-4x; + height: $unit-4x; border-radius: 50%; overflow: hidden; background: var(--card-bg); @@ -1031,7 +1037,7 @@ } .username { - font-size: $font-medium; + font-size: $font-regular; font-weight: $medium; } @@ -1044,7 +1050,6 @@ .cards { display: flex; gap: $unit-2x; - margin-bottom: $unit-2x; // Individual card styles .description-card, diff --git a/src/lib/components/party/PartySegmentedControl.svelte b/src/lib/components/party/PartySegmentedControl.svelte index b5becb88..b7c6ebe1 100644 --- a/src/lib/components/party/PartySegmentedControl.svelte +++ b/src/lib/components/party/PartySegmentedControl.svelte @@ -17,13 +17,7 @@ class?: string } - let { - selectedTab = GridType.Character, - onTabChange, - party, - class: className - }: Props = $props() - + let { selectedTab = GridType.Character, onTabChange, party, class: className }: Props = $props() // Handle value changes let value = $state(selectedTab) @@ -44,12 +38,7 @@