Skip to content

Commit

Permalink
add preview width constraint (minio#10062)
Browse files Browse the repository at this point in the history
* fix: add preview width constraint

* fix: set object item dropdown menu nowrap style
  • Loading branch information
hungtcs authored Jul 16, 2020
1 parent 48aebf2 commit 1341bf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion browser/app/js/objects/PreviewObjectModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 2 additions & 1 deletion browser/app/less/inc/list.less
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ div.fesl-row {
margin: 0;
height: 100%;
text-align: right;
white-space: nowrap;
}

.dropdown {
Expand Down Expand Up @@ -495,4 +496,4 @@ div.fesl-row {
.opacity(1);
right: 0;
}
}
}

0 comments on commit 1341bf5

Please sign in to comment.