From d675342908735c870e288ffb522def49e289e095 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Mon, 22 Jul 2019 22:24:22 -0600 Subject: [PATCH] Give more room while editing programs --- client/pages/ProgramPage.tsx | 5 ++++- client/styles/DeviceView.scss | 10 ++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) 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 {