From 7fafc6d17ffdba882370b9515c4ddddb10813de2 Mon Sep 17 00:00:00 2001 From: neodk2004 Date: Sat, 13 Jun 2026 12:44:57 +0200 Subject: [PATCH] fix(StoryTray): align Add Story circle with PawRing items PawRing containers are size+RING_PAD*2=72px tall while the Add Story button was only 56px, causing vertical misalignment. Wrap the button in a matching 72px container so all tray items share the same height. Co-Authored-By: Claude Sonnet 4.6 --- src/components/stories/StoryTray.tsx | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/components/stories/StoryTray.tsx b/src/components/stories/StoryTray.tsx index 89a1820..7a548e9 100644 --- a/src/components/stories/StoryTray.tsx +++ b/src/components/stories/StoryTray.tsx @@ -18,6 +18,8 @@ import { StoryForm } from "@/components/stories/StoryForm"; import { getAvatarUrl } from "@/lib/avatar-url"; const TRAY_AVATAR_SIZE = 56; // px +const RING_PAD = 8; // must match PawRing's RING_PAD constant +const TRAY_ITEM_SIZE = TRAY_AVATAR_SIZE + RING_PAD * 2; // total height of a PawRing container /** * StoryTray — horizontal scroll row at the top of the feed. @@ -53,16 +55,21 @@ export function StoryTray() { role="list" aria-label="Stories" > - {/* Add story item */} + {/* Add story item — wrapper matches PawRing container height so circles align */}
- + +
Add story