Skip to content

Commit ec7873b

Browse files
feat(ui): use icon-only when connected to services
1 parent eeeb6b6 commit ec7873b

1 file changed

Lines changed: 3 additions & 35 deletions

File tree

app/components/Header/AccountMenu.client.vue

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -65,48 +65,16 @@ function openAuthModal() {
6565
class="border-none"
6666
>
6767
<!-- Stacked avatars when connected -->
68-
<div
69-
v-if="hasAnyConnection"
70-
class="flex items-center"
71-
:class="hasBothConnections ? '-space-x-2' : ''"
72-
>
73-
<!-- npm avatar (first/back) -->
74-
<img
75-
v-if="isNpmConnected && npmAvatar"
76-
:src="npmAvatar"
77-
:alt="npmUser || $t('account_menu.npm_cli')"
78-
width="24"
79-
height="24"
80-
class="w-6 h-6 rounded-full ring-2 ring-bg object-cover"
81-
/>
82-
<span
83-
v-else-if="isNpmConnected"
84-
class="w-6 h-6 rounded-full bg-bg-muted ring-2 ring-bg flex items-center justify-center"
85-
>
86-
<span class="i-carbon-terminal w-3 h-3 text-fg-muted" aria-hidden="true" />
87-
</span>
88-
89-
<!-- Atmosphere avatar (second/front, overlapping) -->
90-
<img
91-
v-if="atprotoUser?.avatar"
92-
:src="atprotoUser.avatar"
93-
:alt="atprotoUser.handle"
94-
width="24"
95-
height="24"
96-
class="w-6 h-6 rounded-full ring-2 ring-bg object-cover"
97-
:class="hasBothConnections ? 'relative z-10' : ''"
98-
/>
68+
<div v-if="hasAnyConnection" class="flex items-center relative">
9969
<span
100-
v-else-if="atprotoUser"
10170
class="w-6 h-6 rounded-full bg-bg-muted ring-2 ring-bg flex items-center justify-center"
10271
:class="hasBothConnections ? 'relative z-10' : ''"
10372
>
73+
<span class="size-1.5 rounded-full bg-green-600 absolute -top-0 -inset-ie-0"></span>
10474
<span class="i-carbon-cloud w-3 h-3 text-fg-muted" aria-hidden="true" />
10575
</span>
10676
</div>
107-
108-
<!-- "connect" text when not connected -->
109-
<span v-if="!hasAnyConnection" class="font-mono text-sm">
77+
<span v-else class="font-mono text-sm">
11078
{{ $t('account_menu.connect') }}
11179
</span>
11280

0 commit comments

Comments
 (0)