refactor(ui): tags in card component have 4px gap

This commit is contained in:
upsiflu 2025-01-09 15:00:59 +01:00
parent af239917bc
commit 4b97b88f8d
1 changed files with 3 additions and 4 deletions

View File

@ -74,11 +74,11 @@ const attributes = computed(() =>
<slot name="alert" />
</Alert>
<div v-if="tags" :class="$style.tags">
<Layout flex gap-4 v-if="tags" :class="$style.tags">
<Pill v-for="tag in tags" :key="tag">
#{{ tag }}
</Pill>
</div>
</Layout>
<Layout no-gap v-if="$slots.default" :class="$style.content">
<slot />
@ -191,8 +191,7 @@ const attributes = computed(() =>
}
>.tags {
/* Tags have an inherent padding which we offset here: */
padding: 0 calc(var(--fw-card-padding) - 12px);
padding: 0 var(--fw-card-padding);
margin-top: 8px;
}