Skip to content

Commit d84c9bc

Browse files
committed
Make space for the X button in SurveyModal
Custom header, no awareness of X button location
1 parent b15bb15 commit d84c9bc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/modals/SurveyModal.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const SurveyModal = (props: { bridge: AirshipBridge<void> }) => {
140140
const animatedStyle = useAnimatedStyle(() => ({
141141
height: inputHeight.value,
142142
width: '100%',
143-
opacity: inputHeight.value ? 1 : 0
143+
opacity: inputHeight.value !== 0 ? 1 : 0
144144
}))
145145

146146
return (
@@ -293,7 +293,7 @@ const SurveyModal2 = (props: {
293293
const animatedStyle = useAnimatedStyle(() => ({
294294
height: inputHeight.value,
295295
width: '100%',
296-
opacity: inputHeight.value ? 1 : 0
296+
opacity: inputHeight.value !== 0 ? 1 : 0
297297
}))
298298

299299
return (
@@ -370,7 +370,8 @@ const SurveyModal2 = (props: {
370370

371371
const getStyles = cacheStyles((theme: Theme) => ({
372372
titleContainer: {
373-
flexDirection: 'column'
373+
flexDirection: 'column',
374+
paddingHorizontal: theme.rem(0.5)
374375
},
375376
radioContainer: {
376377
alignItems: 'flex-start'

0 commit comments

Comments
 (0)