make the sidebar smaller when offset, reduce total offset (#8052)

This commit is contained in:
Samuel Newman
2025-03-24 22:23:27 +02:00
committed by GitHub
parent 412b107420
commit a48e64e72a
3 changed files with 9 additions and 5 deletions
+6 -2
View File
@@ -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',
}),