Fix alignment of uploading progress and overflow of video preview

Summary: Nuf said

Reviewed By: jknoxville

Differential Revision: D18782822

fbshipit-source-id: b17723694e8528408b77f27467132bf83695a84a
This commit is contained in:
Michel Weststrate
2019-12-04 02:53:33 -08:00
committed by Facebook Github Bot
parent 3dbc9acf54
commit 5c680ff325
4 changed files with 16 additions and 4 deletions

View File

@@ -180,6 +180,7 @@ export default class ShareSheetExportFile extends Component<Props, State> {
<ReactReduxContext.Consumer> <ReactReduxContext.Consumer>
{({store}) => ( {({store}) => (
<ShareSheetPendingDialog <ShareSheetPendingDialog
width={500}
statusUpdate={statusUpdate} statusUpdate={statusUpdate}
statusMessage="Exporting Flipper trace..." statusMessage="Exporting Flipper trace..."
onCancel={() => this.cancelAndHide(store)} onCancel={() => this.cancelAndHide(store)}

View File

@@ -194,6 +194,7 @@ export default class ShareSheetExportUrl extends Component<Props, State> {
<ReactReduxContext.Consumer> <ReactReduxContext.Consumer>
{({store}) => ( {({store}) => (
<ShareSheetPendingDialog <ShareSheetPendingDialog
width={500}
statusUpdate={statusUpdate} statusUpdate={statusUpdate}
statusMessage="Uploading Flipper trace..." statusMessage="Uploading Flipper trace..."
onCancel={this.cancelAndHide(store)} onCancel={this.cancelAndHide(store)}

View File

@@ -21,7 +21,6 @@ import React from 'react';
const Container = styled(FlexColumn)({ const Container = styled(FlexColumn)({
padding: 20, padding: 20,
width: 500,
}); });
const Center = styled(FlexColumn)({ const Center = styled(FlexColumn)({
@@ -40,9 +39,10 @@ export default function(props: {
hideNavButtons?: boolean; hideNavButtons?: boolean;
onCancel?: () => void; onCancel?: () => void;
onRunInBackground?: () => void; onRunInBackground?: () => void;
width?: number;
}) { }) {
return ( return (
<Container> <Container style={{width: props.width}}>
<Center> <Center>
<LoadingIndicator size={30} /> <LoadingIndicator size={30} />
{props.statusUpdate && props.statusUpdate.length > 0 ? ( {props.statusUpdate && props.statusUpdate.length > 0 ? (

View File

@@ -2,7 +2,12 @@
exports[`ShareSheetPendingDialog is rendered with status update 1`] = ` exports[`ShareSheetPendingDialog is rendered with status update 1`] = `
<div <div
className="css-1uu1nb5" className="css-ha9vz3"
style={
Object {
"width": undefined,
}
}
> >
<div <div
className="css-mgujkx" className="css-mgujkx"
@@ -47,7 +52,12 @@ exports[`ShareSheetPendingDialog is rendered with status update 1`] = `
exports[`ShareSheetPendingDialog is rendered without status update 1`] = ` exports[`ShareSheetPendingDialog is rendered without status update 1`] = `
<div <div
className="css-1uu1nb5" className="css-ha9vz3"
style={
Object {
"width": undefined,
}
}
> >
<div <div
className="css-mgujkx" className="css-mgujkx"