Skip to content

Commit

Permalink
z-indexes fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rrmerugu committed May 30, 2021
1 parent ee6fe11 commit f0c4da3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/web/viewlets/canvas/canvas-console-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class CanvasConsoleOptions extends React.Component {
render() {
return (
<div className={"d-flex position-absolute"}
style={{"width": "420px", "top": "58px", "zIndex": 100001}}>
style={{"width": "420px", "top": "58px", "zIndex": 1001}}>
<div className={" flex-fill ml-3 bg-secondary"}>
<ul className="nav nav-pills nav-canvas d-flex justify-content-start
text-center pt-1 pb-1 pl-2 pr-3 ml-0 border border-bottom-0">
Expand Down
43 changes: 24 additions & 19 deletions src/web/viewlets/canvas/graph-canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ export default class GraphCanvas extends DefaultRemoteComponent {
connector={this.connector}
setLeftContentName={this.setLeftContentName.bind(this)}
style={{
"width": "420px", "top": "90px", "zIndex": 100001,
"width": "420px", "top": "90px", "zIndex": 1001,
"maxHeight": "calc(100vh - 250px)"
}}
/>
Expand All @@ -668,7 +668,7 @@ export default class GraphCanvas extends DefaultRemoteComponent {
?
<div className={" position-absolute "}
style={{
"width": "420px", "top": "90px", "zIndex": 100001,
"width": "420px", "top": "90px", "zIndex": 1001,
// "maxHeight": "calc(100vh - 140px)",
// "overflow": "scroll"
}}>
Expand Down Expand Up @@ -697,7 +697,7 @@ export default class GraphCanvas extends DefaultRemoteComponent {
this.state.leftContentName === "graph-management"
? <DataSidebarViewlet
style={{
"width": "420px", "top": "90px", "zIndex": 100001,
"width": "420px", "top": "90px", "zIndex": 1001,
}}
cardBodyStyle={{
"maxHeight": "calc(100vh - 265px)"
Expand Down Expand Up @@ -726,7 +726,7 @@ export default class GraphCanvas extends DefaultRemoteComponent {
?
<CanvasDisplaySettings
style={{
"width": "420px", "top": "90px", "zIndex": 100001,
"width": "420px", "top": "90px", "zIndex": 1001,
"maxHeight": "calc(100vh - 250px)"
}}
onClose={() => {
Expand All @@ -743,7 +743,7 @@ export default class GraphCanvas extends DefaultRemoteComponent {
?
<LambdaSettingsView
style={{
"width": "420px", "top": "90px", "zIndex": 100001,
"width": "420px", "top": "90px", "zIndex": 1001,
"maxHeight": "calc(100vh - 250px)"
}}
cardBodyStyle={{
Expand All @@ -762,11 +762,15 @@ export default class GraphCanvas extends DefaultRemoteComponent {
}
{
this.state.modalContentName === "element-options" && this.state.selectedElementData
? <Modal.Dialog
? <Modal
className={"border-0 "}
size="lg"
aria-labelledby="contained-modal-title-vcenter"

centered>
show={true}
dialogClassName="modal-90w"
backdrop={true}
// aria-labelledby="contained-modal-title-vcenter"
centered
>

<Modal.Body style={{"width": "600px"}}>
<ElementOptions
Expand All @@ -784,20 +788,21 @@ export default class GraphCanvas extends DefaultRemoteComponent {
// setShallReRenderD3Canvas={this.setShallReRenderD3Canvas.bind(this)}
/>
</Modal.Body>
</Modal.Dialog>
</Modal>
: <React.Fragment/>
}
{
this.state.modalContentName === "last-response"
? <Modal.Dialog
? <Modal
className={"border-0 "}
size="lg"
aria-labelledby="contained-modal-title-vcenter"
show={true}
dialogClassName="modal-90w"

// show={() => this.state.modalContentName === "last-response"}
// onHide={() => this.setModalContentName(null)}
centered>
<Modal.Header className={"pt-1 pb-1 small"}>
backdrop={true}
// aria-labelledby="contained-modal-title-vcenter"
centered
>
<Modal.Header className={"pt-1 pb-1 small"} closeButton>
<Modal.Title className={"h5"} id="contained-modal-title-vcenter">
Response Viewer
</Modal.Title>
Expand All @@ -807,10 +812,10 @@ export default class GraphCanvas extends DefaultRemoteComponent {
lastResponse={this.state.lastResponse}
lastResponseElapsedTime={this.state.lastResponseElapsedTime}
lastResponseStatusCode={this.state.lastResponseStatusCode}
onClose={()=> this.setModalContentName(null)}
onClose={() => this.setModalContentName(null)}
/>
</Modal.Body>
</Modal.Dialog>
</Modal>
: <React.Fragment/>
}
{
Expand Down

0 comments on commit f0c4da3

Please sign in to comment.