Skip to content

Commit d5ba3de

Browse files
authored
fix native globalerror scrolling (keybase#15735)
1 parent 103bd23 commit d5ba3de

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

‎shared/app/global-errors/index.native.js‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,13 @@ class GlobalError extends React.Component<Props, State> {
8080
const details = this.state.cachedDetails
8181

8282
return (
83-
<Kb.Box2 direction="vertical" style={styles.container}>
83+
<Kb.Box2
84+
direction="vertical"
85+
style={Styles.collapseStyles([
86+
styles.container,
87+
this.state.size === 'Big' && Styles.globalStyles.fillAbsolute,
88+
])}
89+
>
8490
<Kb.SafeAreaViewTop style={{backgroundColor: Styles.globalColors.transparent, flexGrow: 0}} />
8591
<Kb.Box style={Styles.globalStyles.flexBoxColumn}>
8692
<Kb.Box
@@ -91,14 +97,14 @@ class GlobalError extends React.Component<Props, State> {
9197
}}
9298
>
9399
<Kb.Text
94-
center={true} type="BodySmallSemibold"
100+
center={true}
101+
type="BodySmallSemibold"
95102
style={{color: Styles.globalColors.white, flex: 1}}
96103
onClick={this._onExpandClick}
97104
>
98-
<Kb.Icon
99-
type={this.state.size === 'Big' ? 'iconfont-caret-down' : 'iconfont-caret-right'}
100-
color={Styles.globalColors.white_75}
101-
/>
105+
{this.state.size !== 'Big' && (
106+
<Kb.Icon type="iconfont-caret-right" color={Styles.globalColors.white_75} />
107+
)}
102108
{' '}
103109
An error occurred.
104110
</Kb.Text>

0 commit comments

Comments
 (0)