Skip to content

Commit

Permalink
Merge pull request #4926 from rohitkrai03/yaml-editor-fix
Browse files Browse the repository at this point in the history
Bug 1820307: Hide yaml editor links when window width is less than 991px
  • Loading branch information
openshift-merge-robot committed Apr 7, 2020
2 parents c77f777 + 3a470f0 commit 441cb8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
@import '~bootstrap-sass/assets/stylesheets/bootstrap/variables';

.ocs-yaml-editor-toolbar {
&__links {
display: flex;
flex-shrink: 0;
justify-content: flex-end;
margin: 2px;
z-index: 1;
@media(max-width: 767px) {
@media(max-width: $screen-sm-max) {
display: none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/components/edit-yaml.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const EditYAML_ = connect(stateToProps)(
stale: false,
sampleObj: props.sampleObj,
fileUpload: props.fileUpload,
showSidebar: props.create,
showSidebar: !!props.create,
};
this.monacoRef = React.createRef();
// k8s uses strings for resource versions
Expand Down

0 comments on commit 441cb8a

Please sign in to comment.