Screw around with layout
This commit is contained in:
@@ -90,11 +90,11 @@ export const FlatList = React.forwardRef(function FlatListImpl<ItemT>(
|
|||||||
if (desktopFixedHeight) {
|
if (desktopFixedHeight) {
|
||||||
if (typeof desktopFixedHeight === 'number') {
|
if (typeof desktopFixedHeight === 'number') {
|
||||||
// @ts-ignore Web only -prf
|
// @ts-ignore Web only -prf
|
||||||
style = addStyle(style, {
|
// style = addStyle(style, {
|
||||||
height: `calc(100vh - ${desktopFixedHeight}px)`,
|
// height: `calc(100vh - ${desktopFixedHeight}px)`,
|
||||||
})
|
// })
|
||||||
} else {
|
} else {
|
||||||
style = addStyle(style, styles.fixedHeight)
|
// style = addStyle(style, styles.fixedHeight)
|
||||||
}
|
}
|
||||||
if (!isMobile) {
|
if (!isMobile) {
|
||||||
// NOTE
|
// NOTE
|
||||||
@@ -228,7 +228,6 @@ const styles = StyleSheet.create({
|
|||||||
borderLeftWidth: 1,
|
borderLeftWidth: 1,
|
||||||
borderRightWidth: 1,
|
borderRightWidth: 1,
|
||||||
// @ts-ignore web only
|
// @ts-ignore web only
|
||||||
minHeight: '100vh',
|
|
||||||
},
|
},
|
||||||
container: {
|
container: {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
|||||||
@@ -436,7 +436,7 @@ export function DesktopLeftNav() {
|
|||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
leftNav: {
|
leftNav: {
|
||||||
position: 'absolute',
|
position: 'fixed',
|
||||||
top: 10,
|
top: 10,
|
||||||
// @ts-ignore web only
|
// @ts-ignore web only
|
||||||
right: 'calc(50vw + 312px)',
|
right: 'calc(50vw + 312px)',
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ function ShellInner() {
|
|||||||
}, [navigator, closeAllActiveElements])
|
}, [navigator, closeAllActiveElements])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[s.hContentRegion, {overflow: 'hidden'}]}>
|
<View style={[s.hContentRegion]}>
|
||||||
<View style={s.hContentRegion}>
|
<View style={s.hContentRegion}>
|
||||||
<ErrorBoundary>
|
<ErrorBoundary>
|
||||||
<FlatNavigator />
|
<FlatNavigator />
|
||||||
|
|||||||
Reference in New Issue
Block a user