sidebar: fix proficiency list spacing

This commit is contained in:
Justin Edmund 2025-12-13 14:35:25 -08:00
parent b6fb3ec0a0
commit 46d48132bd
2 changed files with 16 additions and 4 deletions

View file

@ -57,9 +57,11 @@
<DetailRow label="Gender" value={getGenderLabel(itemData?.gender)} />
{#if itemData?.proficiency && itemData.proficiency.length > 0}
<DetailRow label="Proficiencies">
{#each itemData.proficiency as prof}
<ProficiencyLabel proficiency={prof} size="medium" />
{/each}
<span class="proficiency-list">
{#each itemData.proficiency as prof}
<ProficiencyLabel proficiency={prof} size="medium" />
{/each}
</span>
</DetailRow>
{/if}
{:else if type === 'weapon'}
@ -80,3 +82,12 @@
/>
</DetailRow>
</DetailsSection>
<style lang="scss">
@use '$src/themes/spacing' as *;
.proficiency-list {
display: inline-flex;
gap: $unit-half;
}
</style>

View file

@ -22,10 +22,11 @@
bind:value={selectedView}
onValueChange={handleViewChange}
variant="background"
size="small"
grow
>
<Segment value="user">This team</Segment>
<Segment value="canonical">Stats</Segment>
<Segment value="canonical">Info</Segment>
</SegmentedControl>
</div>
{/if}