Skip to content

Commit 1cae7c6

Browse files
committed
Stabilize Freebuff live dot alignment
1 parent dc9b885 commit 1cae7c6

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

freebuff/web/src/app/live/live-client.tsx

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -409,19 +409,23 @@ export default function LiveClient({
409409
<div>
410410
<div className="flex flex-wrap items-baseline gap-x-4 gap-y-2">
411411
<h1 className="relative max-w-3xl pl-7 font-serif text-4xl leading-tight text-white md:pl-8 md:text-6xl">
412-
<motion.span
412+
<span
413413
aria-hidden
414-
className="absolute left-0 top-1/2 h-3 w-3 -translate-y-1/2 rounded-full bg-acid-matrix shadow-[0_0_18px_rgba(124,255,63,0.9)] md:h-4 md:w-4"
415-
animate={{
416-
opacity: [0.45, 1, 0.45],
417-
scale: [0.86, 1.18, 0.86],
418-
}}
419-
transition={{
420-
duration: 1.8,
421-
repeat: Infinity,
422-
ease: 'easeInOut',
423-
}}
424-
/>
414+
className="absolute left-0 top-[0.43em] h-3 w-3 -translate-y-1/2 md:h-4 md:w-4"
415+
>
416+
<motion.span
417+
className="block h-full w-full rounded-full bg-acid-matrix shadow-[0_0_18px_rgba(124,255,63,0.9)]"
418+
animate={{
419+
opacity: [0.45, 1, 0.45],
420+
scale: [0.86, 1.18, 0.86],
421+
}}
422+
transition={{
423+
duration: 1.8,
424+
repeat: Infinity,
425+
ease: 'easeInOut',
426+
}}
427+
/>
428+
</span>
425429
Freebuff live
426430
</h1>
427431
<span className="whitespace-nowrap text-sm text-white/45 md:text-base">

0 commit comments

Comments
 (0)