Fix max height of dialog flatlists (#7839)
* Fix max height of dialog flatlists * Remove unneeded wrapper to fix Close positioning * Add wrapper back and fix with position static
This commit is contained in:
@@ -125,12 +125,17 @@ export function Outer({
|
|||||||
},
|
},
|
||||||
]}>
|
]}>
|
||||||
<Backdrop />
|
<Backdrop />
|
||||||
|
{/**
|
||||||
|
* This is needed to prevent centered dialogs from overflowing
|
||||||
|
* above the screen, and provides a "natural" centering so that
|
||||||
|
* stacked dialogs appear relatively aligned.
|
||||||
|
*/}
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
a.w_full,
|
a.w_full,
|
||||||
a.z_20,
|
a.z_20,
|
||||||
a.align_center,
|
a.align_center,
|
||||||
web({minHeight: '60vh'}),
|
web({minHeight: '60vh', position: 'static'}),
|
||||||
]}>
|
]}>
|
||||||
{children}
|
{children}
|
||||||
</View>
|
</View>
|
||||||
@@ -219,8 +224,8 @@ export const InnerFlatList = React.forwardRef<
|
|||||||
style={[
|
style={[
|
||||||
a.overflow_hidden,
|
a.overflow_hidden,
|
||||||
a.px_0,
|
a.px_0,
|
||||||
// @ts-expect-error web only -sfn
|
// 100 minus 10vh of paddingVertical
|
||||||
{maxHeight: 'calc(-36px + 100vh)'},
|
web({maxHeight: '80vh'}),
|
||||||
webInnerStyle,
|
webInnerStyle,
|
||||||
]}
|
]}
|
||||||
contentContainerStyle={[a.px_0, webInnerContentContainerStyle]}>
|
contentContainerStyle={[a.px_0, webInnerContentContainerStyle]}>
|
||||||
|
|||||||
Reference in New Issue
Block a user