From d53b8e58ce41033f0f2109ee5965d7388d3e0346 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 2 Dec 2024 18:11:20 -0600 Subject: [PATCH] Fix sidebar alignment --- src/view/shell/desktop/LeftNav.tsx | 18 +++++++++++++++++- src/view/shell/desktop/RightNav.tsx | 14 +++++++++++--- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index b4ae5db96c..5c2ac3876f 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -322,6 +322,7 @@ export function DesktopLeftNav() { + {routeName === 'Search' ? ( @@ -122,8 +122,16 @@ const styles = StyleSheet.create({ // @ts-ignore web only position: 'fixed', // @ts-ignore web only - left: 'calc(50vw + 300px + 20px)', - width: 300, + left: '50%', + transform: [ + { + translateX: 300, + }, + { + // @ts-ignore web only -esb + translateX: 'var(--scrollbar-offset-negative, 0px)', + }, + ], maxHeight: '100%', overflowY: 'auto', },