diff --git a/client/pages/ProgramPage.tsx b/client/pages/ProgramPage.tsx index 4eba381..b93e59c 100644 --- a/client/pages/ProgramPage.tsx +++ b/client/pages/ProgramPage.tsx @@ -21,6 +21,7 @@ import { ISprinklersDevice } from "@common/httpApi"; import log from "@common/logger"; import { Program, SprinklersDevice } from "@common/sprinklersRpc"; import { action } from "mobx"; +import classNames = require("classnames"); interface ProgramPageProps extends RouteComponentProps<{ deviceId: string; programId: string }> { @@ -173,8 +174,10 @@ class ProgramPage extends React.Component { const { running, enabled, schedule, sequence } = program; + const className = classNames("programEditor", editing && "editing"); + return ( - + {this.renderName(program)}
diff --git a/client/styles/DeviceView.scss b/client/styles/DeviceView.scss index 5dc6aed..3698043 100644 --- a/client/styles/DeviceView.scss +++ b/client/styles/DeviceView.scss @@ -78,8 +78,14 @@ $connected-color: #13d213; color: green; } -.ui.modal.programEditor > .header > .header.item .inline.fields { - margin-bottom: 0; +.ui.modal.programEditor { + &.editing > .content { + min-height: 80vh; + } + + > .header > .header.item .inline.fields { + margin-bottom: 0; + } } .runSectionForm-runButton {