From bf3fba36f2fcb2bc3e5126c42ad9ab49b22cbf4e Mon Sep 17 00:00:00 2001 From: dotta Date: Mon, 6 Apr 2026 11:44:15 -0500 Subject: [PATCH] Offset scroll-to-bottom button when properties panel is open On desktop, the floating scroll-to-bottom button now shifts left to stay clear of the properties panel when it's open (320px + margin). Mobile positioning is unchanged. Co-Authored-By: Paperclip --- ui/src/components/ScrollToBottom.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/src/components/ScrollToBottom.tsx b/ui/src/components/ScrollToBottom.tsx index d3da8981..793e85a0 100644 --- a/ui/src/components/ScrollToBottom.tsx +++ b/ui/src/components/ScrollToBottom.tsx @@ -1,5 +1,7 @@ import { useCallback, useEffect, useState } from "react"; import { ArrowDown } from "lucide-react"; +import { usePanel } from "../context/PanelContext"; +import { cn } from "../lib/utils"; function resolveScrollTarget() { const mainContent = document.getElementById("main-content"); @@ -33,6 +35,7 @@ function distanceFromBottom(target: ReturnType) { */ export function ScrollToBottom() { const [visible, setVisible] = useState(false); + const { panelVisible, panelContent } = usePanel(); useEffect(() => { const check = () => { @@ -70,7 +73,10 @@ export function ScrollToBottom() { return (