add preview width constraint (#10062)

* fix: add preview width constraint

* fix: set object item dropdown menu nowrap style
master
鸿则 4 years ago committed by GitHub
parent 48aebf2d9d
commit 1341bf5a9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      browser/app/js/objects/PreviewObjectModal.js
  2. 1
      browser/app/less/inc/list.less

@ -46,7 +46,7 @@ class PreviewObjectModal extends React.Component {
<ModalBody>
<div className="input-group">
{this.state.url && (
<object data={this.state.url}>
<object data={this.state.url} style={{ display: "block", width: "100%" }}>
<h3 style={{ textAlign: "center", display: "block", width: "100%" }}>
Do not have read permissions to preview "{this.props.object.name}"
</h3>

@ -349,6 +349,7 @@ div.fesl-row {
margin: 0;
height: 100%;
text-align: right;
white-space: nowrap;
}
.dropdown {

Loading…
Cancel
Save