Make settings dialog scrollable

Summary: Make settings dialog content scrollable, which is more natural than scrolling the entire window, as reported in https://fb.workplace.com/groups/flippersupport/permalink/1063196077494383/

Reviewed By: nikoant

Differential Revision: D26015864

fbshipit-source-id: 8c74e105c290e62313e332ed1b47040eff548a97
This commit is contained in:
Michel Weststrate
2021-01-22 02:01:46 -08:00
committed by Facebook GitHub Bot
parent 9cf80f60d7
commit e67ed8030d

View File

@@ -104,8 +104,12 @@ class SettingsSheet extends Component<Props, State> {
onCancel={this.props.onHide}
width={570}
title="Settings"
footer={footer}>
<FlexColumn>{contents}</FlexColumn>
footer={footer}
bodyStyle={{
overflow: 'scroll',
maxHeight: 'calc(100vh - 250px)',
}}>
{contents}
</Modal>
);
}