Skip to content

Commit 44ad364

Browse files
RYGRITalexdln
andauthored
fix: pds page style bug (#1861)
Co-authored-by: Alex Savelyev <91429106+alexdln@users.noreply.github.com> Co-authored-by: Vordgi <sasha2822222@gmail.com>
1 parent b23897c commit 44ad364

File tree

2 files changed

+36
-46
lines changed

2 files changed

+36
-46
lines changed

app/pages/about.vue

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -275,29 +275,24 @@ const roleLabels = computed(
275275
:key="contributor.id"
276276
class="block group relative"
277277
>
278-
<a
279-
:href="contributor.html_url"
280-
target="_blank"
281-
rel="noopener noreferrer"
282-
:aria-label="$t('about.contributors.view_profile', { name: contributor.login })"
283-
class="block rounded-lg"
284-
>
285-
<img
286-
:src="`${contributor.avatar_url}&s=64`"
287-
:alt="`${contributor.login}'s avatar`"
288-
width="48"
289-
height="48"
290-
class="w-12 h-12 rounded-lg ring-2 ring-transparent group-hover:ring-accent transition-all duration-200 ease-out group-hover:scale-125 will-change-transform"
291-
loading="lazy"
292-
/>
293-
<span
294-
class="pointer-events-none absolute -top-9 inset-is-1/2 -translate-x-1/2 whitespace-nowrap rounded-md bg-gray-900 text-white dark:bg-gray-100 dark:text-gray-900 text-xs px-2 py-1 shadow-lg opacity-0 scale-95 transition-all duration-150 group-hover:opacity-100 group-hover:scale-100"
295-
dir="ltr"
296-
role="tooltip"
278+
<TooltipApp :text="`@${contributor.login}`" class="block" position="top">
279+
<a
280+
:href="contributor.html_url"
281+
target="_blank"
282+
rel="noopener noreferrer"
283+
:aria-label="$t('about.contributors.view_profile', { name: contributor.login })"
284+
class="block rounded-lg"
297285
>
298-
@{{ contributor.login }}
299-
</span>
300-
</a>
286+
<img
287+
:src="`${contributor.avatar_url}&s=64`"
288+
:alt="`${contributor.login}'s avatar`"
289+
width="48"
290+
height="48"
291+
class="w-12 h-12 rounded-lg ring-2 ring-transparent group-hover:ring-accent transition-all duration-200 ease-out group-hover:scale-125 will-change-transform"
292+
loading="lazy"
293+
/>
294+
</a>
295+
</TooltipApp>
301296
</li>
302297
</ul>
303298
</section>

app/pages/pds.vue

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const totalAccounts = computed(() => pdsUsers.value.length)
4444
</script>
4545

4646
<template>
47-
<main class="container flex-1 py-12 sm:py-16">
47+
<main class="container flex-1 py-12 sm:py-16 overflow-x-hidden">
4848
<article class="max-w-2xl mx-auto">
4949
<header class="mb-12">
5050
<div class="flex items-baseline justify-between gap-4 mb-4">
@@ -156,30 +156,25 @@ const totalAccounts = computed(() => pdsUsers.value.length)
156156
:key="user.handle"
157157
class="block group relative hover:z-10"
158158
>
159-
<a
160-
:href="`https://bsky.app/profile/${user.handle}`"
161-
target="_blank"
162-
rel="noopener noreferrer"
163-
:aria-label="$t('pds.community.view_profile', { handle: user.handle })"
164-
class="block rounded-lg"
165-
>
166-
<img
167-
:src="user.avatar"
168-
:alt="`${user.handle}'s avatar`"
169-
@error="handleImageError(user.handle)"
170-
width="48"
171-
height="48"
172-
class="w-12 h-12 rounded-lg ring-2 ring-transparent group-hover:ring-accent transition-all duration-200 ease-out group-hover:scale-125 will-change-transform"
173-
loading="lazy"
174-
/>
175-
<span
176-
class="pointer-events-none absolute -top-9 inset-is-1/2 -translate-x-1/2 whitespace-nowrap rounded-md bg-gray-900 text-white dark:bg-gray-100 dark:text-gray-900 text-xs px-2 py-1 shadow-lg opacity-0 scale-95 transition-all duration-150 group-hover:opacity-100 group-hover:scale-100"
177-
dir="ltr"
178-
role="tooltip"
159+
<TooltipApp :text="`@${user.handle}`" class="block" position="top">
160+
<a
161+
:href="`https://bsky.app/profile/${user.handle}`"
162+
target="_blank"
163+
rel="noopener noreferrer"
164+
:aria-label="$t('pds.community.view_profile', { handle: user.handle })"
165+
class="block rounded-lg"
179166
>
180-
@{{ user.handle }}
181-
</span>
182-
</a>
167+
<img
168+
:src="user.avatar"
169+
:alt="`${user.handle}'s avatar`"
170+
@error="handleImageError(user.handle)"
171+
width="48"
172+
height="48"
173+
class="w-12 h-12 rounded-lg ring-2 ring-transparent group-hover:ring-accent transition-all duration-200 ease-out group-hover:scale-125 will-change-transform"
174+
loading="lazy"
175+
/>
176+
</a>
177+
</TooltipApp>
183178
</li>
184179
</ul>
185180
<p v-if="usersWithoutAvatars.length" class="text-center mt-4 text-fg-muted text-sm">

0 commit comments

Comments
 (0)