Bluesky app fork with some witchin' additions 💫

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

authored by

Eric Bailey and committed by
GitHub
04378386 23f00924

+8 -3
+8 -3
src/components/Dialog/index.web.tsx
··· 125 125 }, 126 126 ]}> 127 127 <Backdrop /> 128 + {/** 129 + * This is needed to prevent centered dialogs from overflowing 130 + * above the screen, and provides a "natural" centering so that 131 + * stacked dialogs appear relatively aligned. 132 + */} 128 133 <View 129 134 style={[ 130 135 a.w_full, 131 136 a.z_20, 132 137 a.align_center, 133 - web({minHeight: '60vh'}), 138 + web({minHeight: '60vh', position: 'static'}), 134 139 ]}> 135 140 {children} 136 141 </View> ··· 219 224 style={[ 220 225 a.overflow_hidden, 221 226 a.px_0, 222 - // @ts-expect-error web only -sfn 223 - {maxHeight: 'calc(-36px + 100vh)'}, 227 + // 100 minus 10vh of paddingVertical 228 + web({maxHeight: '80vh'}), 224 229 webInnerStyle, 225 230 ]} 226 231 contentContainerStyle={[a.px_0, webInnerContentContainerStyle]}>