Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
ENH: Styling of modals served via the frontend-build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArndalAndersen authored and ArndalAndersen committed May 2, 2019
1 parent 57d5139 commit 4404a98
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
open the browser
- Add versioneer
- Enable user to specify pump configuration directory
- Styling of frontend served via the build
- Update to `react-scripts` 2.1.3

2018.11.07
Expand Down
2 changes: 1 addition & 1 deletion EXECUTABLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ This will create a run.spec file in the backend directory.
3. Activate the virtual environment
4. Type: `pyinstaller --clean run.spec`

This generates a `run.exe` file inside the backend's `dist` folder.
This generates a `.exe` file inside the backend's `dist` folder.
4 changes: 2 additions & 2 deletions pyqmix_frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ body {
}
}

.text-modal {
white-space: pre-line;
.modal-input {
text-align: left;
}

.form-control {
Expand Down
20 changes: 11 additions & 9 deletions pyqmix_frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ class PumpForm extends Component {
</Button>

<Modal isOpen={this.state.modal['locateConfigFiles']}
className={this.props.className}>
className="modal-input">
<ModalHeader>Select a pump configuration</ModalHeader>
{/*<ModalBody></ModalBody>*/}
<ModalHeader>
Expand Down Expand Up @@ -809,7 +809,7 @@ class PumpForm extends Component {
</Modal>

<Modal isOpen={this.state.modal['noConfigOrDllFound']}
className={this.props.className}>
className="modal-input">
<ModalHeader >Error - no pumps were detected.</ModalHeader>
<ModalBody>
Ensure that:
Expand Down Expand Up @@ -860,7 +860,8 @@ class PumpForm extends Component {
disabled={this.state.selectedPumps.length === 0}
> Reference Move </Button>
<FormText>Calibrate the selected pumps.</FormText>
<Modal isOpen={this.state.modal['referenceMove']} className={this.props.className}>
<Modal isOpen={this.state.modal['referenceMove']}
className="modal-input">
<ModalHeader >Reference Move</ModalHeader>
<ModalBody>
Detach all syringes from the pumps before continuing.
Expand Down Expand Up @@ -894,7 +895,8 @@ class PumpForm extends Component {
> Fill Cycle </Button>
<FormText>Fill & empty the syringe multiple times. Ends with a filled syringe.</FormText>

<Modal isOpen={this.state.modal['fill']} className={this.props.className}>
<Modal isOpen={this.state.modal['fill']}
className="modal-input">
<ModalHeader>Fill</ModalHeader>
<ModalBody>
Insert the inlet tube into the stimulus reservoir and
Expand Down Expand Up @@ -971,7 +973,7 @@ class PumpForm extends Component {
<FormText>Empty & fill the syringe multiple times. Ends with an empty syringe.</FormText>

<Modal isOpen={this.state.modal['empty']}
className={this.props.className}>
className="modal-input">
<ModalHeader>Empty</ModalHeader>
<ModalBody>
Remove the inlet tube from the stimulus reservoir and
Expand Down Expand Up @@ -1045,7 +1047,7 @@ class PumpForm extends Component {
> Bubble Cycle </Button>
<FormText>Guided procedure to remove air bubbles trapped in the syringe. Ends with a filled syringe.</FormText>
<Modal isOpen={this.state.modal['bubbleCycleStart']}
className={this.props.className}>
className="modal-input">
<ModalHeader>Bubble Cycle</ModalHeader>
<ModalBody>
Insert the inlet tube into the stimulus reservoir.
Expand All @@ -1060,7 +1062,7 @@ class PumpForm extends Component {
</ModalFooter>
</Modal>
<Modal isOpen={this.state.modal['bubbleCycleMiddle']}
className={this.props.className}>
className="modal-input">
<ModalHeader>Bubble Cycle</ModalHeader>
<ModalBody>
Remove the inlet tube from the stimulus reservoir to aspirate air.
Expand All @@ -1077,7 +1079,7 @@ class PumpForm extends Component {
</ModalFooter>
</Modal>
<Modal isOpen={this.state.modal['bubbleCycleEnd']}
className={this.props.className}>
className="modal-input">
<ModalHeader>Bubble Cycle</ModalHeader>
<ModalBody>
Insert the inlet tube into the stimulus reservoir.
Expand Down Expand Up @@ -1140,7 +1142,7 @@ class PumpForm extends Component {
> Rinse Cycle </Button>
<FormText>Empty & fill the syringe multiple times. Ends with an empty syringe.</FormText>
<Modal isOpen={this.state.modal['rinse']}
className={this.props.className}>
className="modal-input">
<ModalHeader>Rinse</ModalHeader>
<ModalBody>
Insert the inlet tube into the rinsing fluid
Expand Down

0 comments on commit 4404a98

Please sign in to comment.