From 5d62d0537d964a366b7a07a62d26736b1fddecf7 Mon Sep 17 00:00:00 2001 From: Eoin Falconer Date: Tue, 17 Dec 2024 15:27:52 +0100 Subject: [PATCH] fix: tooltip position in announcements popup --- .../StudioAnnouncementsDialog.tsx | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/packages/sanity/src/core/studio/studioAnnouncements/StudioAnnouncementsDialog.tsx b/packages/sanity/src/core/studio/studioAnnouncements/StudioAnnouncementsDialog.tsx index db4da472a72..9ae088476bc 100644 --- a/packages/sanity/src/core/studio/studioAnnouncements/StudioAnnouncementsDialog.tsx +++ b/packages/sanity/src/core/studio/studioAnnouncements/StudioAnnouncementsDialog.tsx @@ -36,12 +36,13 @@ const DialogHeader = styled(Grid)` background: var(--card-bg-color); ` -const FloatingButton = styled(Button)` +const FloatingButtonBox = styled(Box)` position: absolute; top: 12px; right: 24px; z-index: 2; ` +const FloatingButton = styled(Button)`` interface AnnouncementProps { announcement: StudioAnnouncementDocument @@ -193,15 +194,17 @@ export function StudioAnnouncementsDialog({ {index < announcements.length - 1 && } ))} - + + + )