From f30d7e3668826bb65a8cc53fe721be854468c19a Mon Sep 17 00:00:00 2001 From: Chad Curtis Date: Tue, 24 Mar 2026 07:11:28 -0500 Subject: [PATCH] FAB follows bottom nav, subtle shadow, fixed positioning --- src/components/FloatingComposeButton.tsx | 8 +++----- src/components/MainLayout.tsx | 24 ++++++++++++++++-------- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/src/components/FloatingComposeButton.tsx b/src/components/FloatingComposeButton.tsx index 86968b8c..1d22ca2d 100644 --- a/src/components/FloatingComposeButton.tsx +++ b/src/components/FloatingComposeButton.tsx @@ -11,10 +11,7 @@ import { ReplyComposeModal } from '@/components/ReplyComposeModal'; import { useCurrentUser } from '@/hooks/useCurrentUser'; import { getAvatarShape, getEmojiMaskUrl } from '@/lib/avatarShape'; -/** Drop shadow style for the planet FAB — hoisted to avoid re-creating on every render. */ -const fabShadowStyle: React.CSSProperties = { - filter: 'drop-shadow(0 4px 12px hsl(var(--primary) / 0.4)) drop-shadow(0 2px 4px hsl(var(--primary) / 0.2))', -}; + interface FloatingComposeButtonProps { /** The Nostr event kind this FAB creates. kind=1 opens compose; others show "Coming soon". */ @@ -73,7 +70,8 @@ export function FloatingComposeButton({ kind = 1, href, onFabClick, icon }: Floa