Skip to content

Commit e1004f7

Browse files
gerholmcarlhaggren
andauthored
Phaddergroup logo next to phadder mandate on profile (#975)
* Phaddergroup logo next to phadder mandate on profile * Refactor image rendering logic for mandate display Highkey mer najs kod, mindre kludd. --------- Co-authored-by: carlhaggren <carl.haggren@gmail.com>
1 parent d1751b7 commit e1004f7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/routes/(app)/members/[studentId]/+page@(app).svelte

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,13 @@
176176
class="flex items-center gap-2"
177177
href="/positions/{mandate.position.id}"
178178
>
179-
{#if mandate.position.committee}
180-
<figure class="size-7 overflow-hidden">
179+
<figure class="size-7 overflow-hidden rounded-sm">
180+
{#if mandate.phadderIn?.imageUrl}
181+
<img src={mandate.phadderIn.imageUrl} alt="Group logo" />
182+
{:else if mandate.position.committee}
181183
<CommitteeSymbol committee={mandate.position.committee} />
182-
</figure>
183-
{/if}
184+
{/if}
185+
</figure>
184186
<p
185187
class="text-[var(--text-pink)] lg:tooltip before:text-balance"
186188
data-tip={mandate.position.committee?.name +

0 commit comments

Comments
 (0)