From 0b34e7ecfb7e1586d8b8b82788d464c975b34bbd Mon Sep 17 00:00:00 2001 From: Moepchi Date: Fri, 11 Sep 2026 16:28:18 +0000 Subject: [PATCH] web: put the donation pill below the feedback button The two floating buttons swap places: the Ko-fi pill now sits in the corner at bottom: 5.5rem and the feedback button stacks above it at 8.5rem, which keeps the same 12px gap the previous arrangement had. The offset still follows the instance rather than the dialog, it just moved to the other element: the feedback button only shifts up where the donation pill is actually rendered, and takes the corner spot where the build dropped it via VITE_DONATE_URL=. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU --- web/src/App.css | 10 +++++----- web/src/App.tsx | 22 +++++++++------------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/web/src/App.css b/web/src/App.css index eac1ec1..002f49a 100644 --- a/web/src/App.css +++ b/web/src/App.css @@ -3717,6 +3717,11 @@ gap: 0.5rem; } +/* Ueber der Spenden-Pille (2.25rem hoch, bottom: 5.5rem) statt darauf. */ +.ts-feedback-fab-wrap-stacked { + bottom: 8.5rem; +} + .ts-feedback-fab { width: 3rem; height: 3rem; @@ -3764,11 +3769,6 @@ transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; } -/* Ueber dem Feedback-Button (3rem hoch, bottom: 5.5rem) statt darauf. */ -.ts-donate-fab-stacked { - bottom: 9.25rem; -} - .ts-donate-fab:hover { background: #ff4b47; transform: scale(1.06); diff --git a/web/src/App.tsx b/web/src/App.tsx index 6aa6033..656b1be 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -2053,7 +2053,7 @@ const FEEDBACK_BUBBLE_MIN_INTERVAL_MS = 3 * 24 * 60 * 60 * 1000; // don't nag mo const FEEDBACK_BUBBLE_INITIAL_DELAY_MS = 45_000; const FEEDBACK_BUBBLE_AUTO_HIDE_MS = 14_000; -function FeedbackFab({ onOpen }: { onOpen: () => void }) { +function FeedbackFab({ onOpen, stacked }: { onOpen: () => void; stacked: boolean }) { const t = useT(); const [bubbleVisible, setBubbleVisible] = useState(false); @@ -2086,7 +2086,7 @@ function FeedbackFab({ onOpen }: { onOpen: () => void }) { }, [bubbleVisible]); return ( -
+
{bubbleVisible && (