Skip to content
Snippets Groups Projects
Commit ad4f1b68 authored by Antoine Detailleur's avatar Antoine Detailleur
Browse files

[NRRPLT-8136] First CSS processing, need bootstrap refactoring

parent a3882b44
No related branches found
No related tags found
No related merge requests found
...@@ -6,10 +6,11 @@ ...@@ -6,10 +6,11 @@
z-index: 999; z-index: 999;
} }
.modal-dialog { .modal-header{
position: absolute; background-color: rgb(241, 185, 185);
margin: 50px; color: rgb(138, 41, 41);
left: 50%; }
-ms-transform: translateX(-50%);
transform: translateX(-50%); .details{
clear: left;
} }
\ No newline at end of file
...@@ -49,14 +49,24 @@ class ErrorDialog extends React.Component{ ...@@ -49,14 +49,24 @@ class ErrorDialog extends React.Component{
<div> <div>
{error? {error?
<div className="modal-dialog-wrapper"> <div className="modal-dialog-wrapper">
<Modal.Dialog className="modal-dialog"> <Modal.Dialog>
<Modal.Header> <Modal.Header className="modal-header">
<h4>{error.type}</h4> <h4>{error.type}</h4>
</Modal.Header> </Modal.Header>
<Modal.Body> <Modal.Body>
<h5>Details</h5><pre>{error.message}</pre> <h5>Details</h5><pre>{error.message}</pre>
</Modal.Body>
<Modal.Footer>
<div>
<Button variant="warning" onClick={() => this.handleClose()}>
<span className="glyphicon glyphicon-remove"></span> Close
</Button>
<Button variant="light" onClick={() => this.sourceDisplay()}>
{this.state.isErrorSourceDisplayed ? 'Hide' : 'Show'} scary details <span></span>
</Button>
</div>
{this.state.isErrorSourceDisplayed {this.state.isErrorSourceDisplayed
?<div> ? <div className="details">
{!error.code && !error.data && !error.stack {!error.code && !error.data && !error.stack
? <h6>No scary details</h6> ? <h6>No scary details</h6>
: null} : null}
...@@ -72,16 +82,6 @@ class ErrorDialog extends React.Component{ ...@@ -72,16 +82,6 @@ class ErrorDialog extends React.Component{
</div> </div>
: null : null
} }
</Modal.Body>
<Modal.Footer>
<div>
<Button variant="outline-dark" onClick={() => this.handleClose()}>
<span className="glyphicon glyphicon-remove"></span> Close
</Button>
<Button variant="outline-dark" className="pull-right" onClick={() => this.sourceDisplay()}>
{this.state.isErrorSourceDisplayed ? 'Hide' : 'Show'} scary details <span className="caret"></span>
</Button>
</div>
</Modal.Footer> </Modal.Footer>
</Modal.Dialog> </Modal.Dialog>
</div> </div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment