Skip to content

Commit

Permalink
Fix Tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvanhoesel committed Feb 14, 2024
1 parent 3c590a3 commit 84011ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/layout/HeaderMeta.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ interface Props {
>
{
Astro.props.items?.map(({ label, icon, tooltip, href }) => (
<div class="flex items-center gap-2">
<Tooltip content={tooltip}>
<Tooltip content={tooltip} client:idle>
<div class="flex items-center gap-2">
{icon && "src" in icon && <Image class="h-4 w-4 md:h-5 md:w-5" src={icon} alt="" />}
{icon && icon instanceof Promise && <Svg class="h-4 w-4 text-white opacity-20 md:h-5 md:w-5" src={icon} />}
<span class="text-xs font-bold text-white/40 md:text-sm">
Expand All @@ -42,8 +42,8 @@ interface Props {
label
)}
</span>
</Tooltip>
</div>
</div>
</Tooltip>
))
}
</div>
Expand Down

0 comments on commit 84011ed

Please sign in to comment.