From 79ff1e8ff983266bc084d158c56cdd023dfc0e21 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Tue, 24 Jul 2018 12:55:43 -0600 Subject: [PATCH] Minor UI improvements --- app/components/App.tsx | 10 +++++----- app/components/DeviceView.scss | 22 +++++++++++++--------- app/components/DeviceView.tsx | 8 +++++--- app/components/ProgramTable.tsx | 2 +- app/components/SectionChooser.tsx | 1 + app/components/SectionRunnerView.tsx | 2 +- app/pages/ProgramPage.tsx | 2 +- 7 files changed, 27 insertions(+), 20 deletions(-) diff --git a/app/components/App.tsx b/app/components/App.tsx index d146d23..cb5c20b 100644 --- a/app/components/App.tsx +++ b/app/components/App.tsx @@ -17,11 +17,11 @@ function NavContainer() { - - - {/**/} - {/**/} - {/**/} + + + + + diff --git a/app/components/DeviceView.scss b/app/components/DeviceView.scss index bca82da..3df3230 100644 --- a/app/components/DeviceView.scss +++ b/app/components/DeviceView.scss @@ -6,13 +6,7 @@ flex-direction: row; } } - .ui.stackable.grid.in-container > .row > .column { - @media only screen and (max-width: 991px) { - padding-left: 0 !important; - padding-right: 0 !important; - } - } - .ui.stackable.grid.in-container { + .ui.grid { margin-top: 0; } .connectionState { @@ -46,22 +40,32 @@ width: 20em; } +.sectionChooser { + .ui.selection.dropdown { + min-width: 12em; + } +} + .durationInputs { display: flex; + flex-wrap: wrap; + margin: -0.5em; } $durationInput-labelWidth: 2.5em; .ui.form .field .ui.input.durationInput { + margin: 0.5em; + &.minutes { - margin-right: 1em; + //margin-right: 1em; } &.seconds { } > input { - flex: 1 1 6em; + flex: 1 0 6em; width: 100%; } diff --git a/app/components/DeviceView.tsx b/app/components/DeviceView.tsx index 633a334..e484c89 100644 --- a/app/components/DeviceView.tsx +++ b/app/components/DeviceView.tsx @@ -54,12 +54,14 @@ class DeviceView extends React.Component - - + + + + - + diff --git a/app/components/ProgramTable.tsx b/app/components/ProgramTable.tsx index 79d30eb..29361a0 100644 --- a/app/components/ProgramTable.tsx +++ b/app/components/ProgramTable.tsx @@ -33,7 +33,7 @@ class ProgramRows extends React.Component<{ + {progressBar} diff --git a/app/pages/ProgramPage.tsx b/app/pages/ProgramPage.tsx index 7040ccd..c7311c4 100644 --- a/app/pages/ProgramPage.tsx +++ b/app/pages/ProgramPage.tsx @@ -81,7 +81,7 @@ class ProgramPage extends React.Component<{ return ( {editButtons}