Skip to content

Commit 3efe6b0

Browse files
dahliaclaude
andcommitted
Fix roadmap timeline alignment on mobile
Center timeline nodes and rocket icon relative to the vertical line on narrow viewports using precise pixel offsets. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 48606a2 commit 3efe6b0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/RoadmapSection.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const phases = [
7676
<!-- Timeline -->
7777
<div class="relative">
7878
<!-- Vertical line -->
79-
<div class="absolute left-4 md:left-1/2 top-0 bottom-0 w-px bg-gradient-to-b from-sky-500 via-violet-500 to-amber-500 md:-translate-x-1/2" />
79+
<div class="absolute left-4 md:left-1/2 top-0 bottom-0 w-px bg-gradient-to-b from-sky-500 via-violet-500 to-amber-500" />
8080

8181
<!-- Phase items -->
8282
<div class="space-y-12">
@@ -87,7 +87,7 @@ const phases = [
8787
>
8888
<!-- Timeline node -->
8989
<div
90-
class="absolute left-4 md:left-1/2 w-4 h-4 rounded-full border-4 border-white dark:border-slate-900 md:-translate-x-1/2 z-10"
90+
class="absolute left-4 md:left-1/2 w-4 h-4 rounded-full border-4 border-white dark:border-slate-900 -translate-x-[7px] md:-translate-x-1/2 z-10"
9191
:class="{
9292
'bg-sky-500': item.color === 'sky',
9393
'bg-violet-500': item.color === 'violet',
@@ -153,7 +153,7 @@ const phases = [
153153
</div>
154154

155155
<!-- End marker -->
156-
<div class="absolute left-4 md:left-1/2 -bottom-4 w-8 h-8 rounded-full bg-gradient-to-br from-sky-500 to-pink-500 md:-translate-x-1/2 flex items-center justify-center">
156+
<div class="absolute left-4 md:left-1/2 -bottom-4 w-8 h-8 rounded-full bg-gradient-to-br from-sky-500 to-pink-500 -translate-x-[15px] md:-translate-x-1/2 flex items-center justify-center">
157157
<div class="i-lucide-rocket w-4 h-4 text-white" />
158158
</div>
159159
</div>

0 commit comments

Comments
 (0)