From d290dda4d82e292b71ba200e99139c80a892e2d1 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 1 Dec 2023 20:13:55 +0000 Subject: [PATCH] Screw around with layout --- src/view/com/util/Views.web.tsx | 9 ++++----- src/view/shell/desktop/LeftNav.tsx | 2 +- src/view/shell/index.web.tsx | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/view/com/util/Views.web.tsx b/src/view/com/util/Views.web.tsx index b2279ecaa1..12bafdc027 100644 --- a/src/view/com/util/Views.web.tsx +++ b/src/view/com/util/Views.web.tsx @@ -90,11 +90,11 @@ export const FlatList = React.forwardRef(function FlatListImpl( if (desktopFixedHeight) { if (typeof desktopFixedHeight === 'number') { // @ts-ignore Web only -prf - style = addStyle(style, { - height: `calc(100vh - ${desktopFixedHeight}px)`, - }) + // style = addStyle(style, { + // height: `calc(100vh - ${desktopFixedHeight}px)`, + // }) } else { - style = addStyle(style, styles.fixedHeight) + // style = addStyle(style, styles.fixedHeight) } if (!isMobile) { // NOTE @@ -228,7 +228,6 @@ const styles = StyleSheet.create({ borderLeftWidth: 1, borderRightWidth: 1, // @ts-ignore web only - minHeight: '100vh', }, container: { width: '100%', diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index e294431f31..542633105e 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -436,7 +436,7 @@ export function DesktopLeftNav() { const styles = StyleSheet.create({ leftNav: { - position: 'absolute', + position: 'fixed', top: 10, // @ts-ignore web only right: 'calc(50vw + 312px)', diff --git a/src/view/shell/index.web.tsx b/src/view/shell/index.web.tsx index 38da860bdc..3a17b4502b 100644 --- a/src/view/shell/index.web.tsx +++ b/src/view/shell/index.web.tsx @@ -33,7 +33,7 @@ function ShellInner() { }, [navigator, closeAllActiveElements]) return ( - +