Skip to content

Commit e639080

Browse files
committed
Improve spacing on ratings
1 parent 1e01e60 commit e639080

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/lib/components/Bike.svelte

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,20 +130,20 @@
130130
<!-- Weird styling to perfectly align with the other icons -->
131131
<div class="text-label font-bold text-xl -mr-6 w-[42px]">--</div>
132132
{/if}
133-
<div class="relative h-11 min-w-0 grow overflow-hidden">
134-
<div class="absolute left-0 right-0 text-base font-bold text-primary leading-tight transition-all duration-150 ease-out {hasRating ? 'top-0 translate-y-0' : 'top-1/2 -translate-y-1/2'}">{id}</div>
133+
<div class="relative h-[42px] min-w-0 grow overflow-hidden">
134+
<div class="absolute left-0 right-0 text-base font-bold text-primary leading-tight transition-all duration-150 ease-out {hasRating ? 'top-0 translate-y-[0px]' : 'top-1/2 -translate-y-1/2'}">{id}</div>
135135
{#if hasRating}
136136
<div class="absolute bottom-0 left-0 right-0 flex h-4 items-center gap-1 text-label" transition:fly={{ y: -4, duration: 150, opacity: 0 }}>
137137
{#if rating === 1}
138-
<IconMoodWrrr size={16} stroke={2} class="shrink-0" />
138+
<IconMoodWrrr size={18} stroke={2} />
139139
{:else if rating === 2}
140-
<IconMoodConfuzed size={16} stroke={2} class="shrink-0" />
140+
<IconMoodConfuzed size={18} stroke={2}/>
141141
{:else if rating === 3}
142-
<IconMoodEmpty size={16} stroke={2} class="shrink-0" />
142+
<IconMoodEmpty size={18} stroke={2} />
143143
{:else if rating === 4}
144-
<IconMoodSmile size={16} stroke={2} class="shrink-0" />
144+
<IconMoodSmile size={18} stroke={2} />
145145
{:else}
146-
<IconMoodHappy size={16} stroke={2} class="shrink-0" />
146+
<IconMoodHappy size={18} stroke={2} />
147147
{/if}
148148
<div class="translate-y-px truncate text-xs font-semibold uppercase leading-none">{ratingLabel(rating)}</div>
149149
</div>

0 commit comments

Comments
 (0)