From 8a0ed8a6be86eab28b63e9313a23a5a9f4622d19 Mon Sep 17 00:00:00 2001 From: Cyrus Gray <144336577+graycyrus@users.noreply.github.com> Date: Thu, 30 Apr 2026 19:31:25 +0530 Subject: [PATCH] fix(ui): consistent sidebar layout across all views (#1048) --- app/src/components/accounts/WebviewHost.tsx | 13 ++++++++----- app/src/pages/Accounts.tsx | 18 ++++++------------ 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/app/src/components/accounts/WebviewHost.tsx b/app/src/components/accounts/WebviewHost.tsx index 909b423d2..12ecf9ea1 100644 --- a/app/src/components/accounts/WebviewHost.tsx +++ b/app/src/components/accounts/WebviewHost.tsx @@ -64,11 +64,14 @@ const WebviewHost = ({ accountId, provider }: WebviewHostProps) => { const measureAndSync = () => { if (!el || cancelled) return; const rect = el.getBoundingClientRect(); + // Inset the native webview by the container's border-radius so the + // rounded HTML border is visible around the edges. + const inset = 8; const bounds = { - x: Math.round(rect.left), - y: Math.round(rect.top), - width: Math.max(1, Math.round(rect.width)), - height: Math.max(1, Math.round(rect.height)), + x: Math.round(rect.left + inset), + y: Math.round(rect.top + inset), + width: Math.max(1, Math.round(rect.width - inset * 2)), + height: Math.max(1, Math.round(rect.height - inset * 2)), }; const last = lastBoundsRef.current; const unchanged = @@ -120,7 +123,7 @@ const WebviewHost = ({ accountId, provider }: WebviewHostProps) => { return (