Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sets 'Choose file' button width to avoid wrap #830

Merged
merged 2 commits into from
Feb 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/components/UploadPipelineDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class UploadPipelineDialog extends React.Component<UploadPipelineDialogProps, Up
endAdornment: (
<InputAdornment position='end'>
<Button color='secondary' onClick={() => this._dropzoneRef.current!.open()}
style={{ padding: '3px 5px', margin: 0 }}>
style={{ padding: '3px 5px', margin: 0, whiteSpace: 'nowrap' }}>
Choose file
</Button>
</InputAdornment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ exports[`UploadPipelineDialog renders an active dropzone 1`] = `
Object {
"margin": 0,
"padding": "3px 5px",
"whiteSpace": "nowrap",
}
}
>
Expand Down Expand Up @@ -304,6 +305,7 @@ exports[`UploadPipelineDialog renders closed 1`] = `
Object {
"margin": 0,
"padding": "3px 5px",
"whiteSpace": "nowrap",
}
}
>
Expand Down Expand Up @@ -434,6 +436,7 @@ exports[`UploadPipelineDialog renders open 1`] = `
Object {
"margin": 0,
"padding": "3px 5px",
"whiteSpace": "nowrap",
}
}
>
Expand Down Expand Up @@ -564,6 +567,7 @@ exports[`UploadPipelineDialog renders with a selected file to upload 1`] = `
Object {
"margin": 0,
"padding": "3px 5px",
"whiteSpace": "nowrap",
}
}
>
Expand Down