Skip to content

Commit 3805729

Browse files
committed
fix(ui): fix squashed avatars & add missing mobile bluesky avatar
1 parent 508505a commit 3805729

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

app/components/Header/AccountMenu.client.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function openAuthModal() {
7777
:alt="npmUser || $t('account_menu.npm_cli')"
7878
width="24"
7979
height="24"
80-
class="w-6 h-6 rounded-full ring-2 ring-bg"
80+
class="w-6 h-6 rounded-full ring-2 ring-bg object-cover"
8181
/>
8282
<span
8383
v-else-if="isNpmConnected"
@@ -93,7 +93,7 @@ function openAuthModal() {
9393
:alt="atprotoUser.handle"
9494
width="24"
9595
height="24"
96-
class="w-6 h-6 rounded-full ring-2 ring-bg"
96+
class="w-6 h-6 rounded-full ring-2 ring-bg object-cover"
9797
:class="hasBothConnections ? 'relative z-10' : ''"
9898
/>
9999
<span
@@ -153,7 +153,7 @@ function openAuthModal() {
153153
:alt="npmUser"
154154
width="32"
155155
height="32"
156-
class="w-8 h-8 rounded-full"
156+
class="w-8 h-8 rounded-full object-cover"
157157
/>
158158
<span
159159
v-else
@@ -196,7 +196,7 @@ function openAuthModal() {
196196
:alt="atprotoUser.handle"
197197
width="32"
198198
height="32"
199-
class="w-8 h-8 rounded-full"
199+
class="w-8 h-8 rounded-full object-cover"
200200
/>
201201
<span
202202
v-else

app/components/Header/MobileMenu.client.vue

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ onUnmounted(deactivate)
243243
:alt="npmUser"
244244
width="20"
245245
height="20"
246-
class="w-5 h-5 rounded-full"
246+
class="w-5 h-5 rounded-full object-cover"
247247
/>
248248
<span
249249
v-else
@@ -262,7 +262,18 @@ onUnmounted(deactivate)
262262
class="w-full flex items-center gap-3 px-3 py-3 rounded-md font-mono text-sm text-fg hover:bg-bg-subtle transition-colors duration-200 text-start"
263263
@click="handleShowAuth"
264264
>
265-
<span class="w-5 h-5 rounded-full bg-bg-muted flex items-center justify-center">
265+
<img
266+
v-if="atprotoUser.avatar"
267+
:src="atprotoUser.avatar"
268+
:alt="atprotoUser.handle"
269+
width="20"
270+
height="20"
271+
class="w-5 h-5 rounded-full object-cover"
272+
/>
273+
<span
274+
v-else
275+
class="w-5 h-5 rounded-full bg-bg-muted flex items-center justify-center"
276+
>
266277
<span class="i-carbon-cloud w-3 h-3 text-fg-muted" aria-hidden="true" />
267278
</span>
268279
<span class="flex-1 truncate">@{{ atprotoUser.handle }}</span>

0 commit comments

Comments
 (0)