diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-03-24 22:23:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-24 22:23:27 +0200 |
commit | a48e64e72a1e5a89f3615ed82005c42b4549eb2f (patch) | |
tree | 7c431aad496ff02125debd1043b7d8364d84073b /src/view/shell/desktop/RightNav.tsx | |
parent | 412b10742006df48dbde99414453c335f62942b6 (diff) | |
download | voidsky-a48e64e72a1e5a89f3615ed82005c42b4549eb2f.tar.zst |
make the sidebar smaller when offset, reduce total offset (#8052)
Diffstat (limited to 'src/view/shell/desktop/RightNav.tsx')
-rw-r--r-- | src/view/shell/desktop/RightNav.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/view/shell/desktop/RightNav.tsx b/src/view/shell/desktop/RightNav.tsx index 59f7ce2a1..18ce42ee8 100644 --- a/src/view/shell/desktop/RightNav.tsx +++ b/src/view/shell/desktop/RightNav.tsx @@ -58,6 +58,8 @@ export function DesktopRightNav({routeName}: {routeName: string}) { return null } + const width = centerColumnOffset ? 250 : 300 + return ( <View style={[ @@ -67,10 +69,12 @@ export function DesktopRightNav({routeName}: {routeName: string}) { position: 'fixed', left: '50%', transform: [ - {translateX: 300 + (centerColumnOffset ? CENTER_COLUMN_OFFSET : 0)}, + { + translateX: 300 + (centerColumnOffset ? CENTER_COLUMN_OFFSET : 0), + }, ...a.scrollbar_offset.transform, ], - width: 300 + gutters.paddingLeft, + width: width + gutters.paddingLeft, maxHeight: '100%', overflowY: 'auto', }), |