From daa1060ce3f953a767b88a1108185a9554d91649 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 20 Mar 2021 22:30:00 +0100 Subject: form styling --- frontend/app/views/graph/graph.css | 35 +++++++- frontend/app/views/page/page.css | 3 + frontend/app/views/tile/components/tile.form.js | 108 ++++++++++++++---------- 3 files changed, 97 insertions(+), 49 deletions(-) (limited to 'frontend/app/views') diff --git a/frontend/app/views/graph/graph.css b/frontend/app/views/graph/graph.css index bfdbe5c..171bb38 100644 --- a/frontend/app/views/graph/graph.css +++ b/frontend/app/views/graph/graph.css @@ -69,6 +69,9 @@ justify-content: flex-start; align-items: center; } +.box form label.checkbox.short span { + padding: 0.125rem 0; +} .box form input[type="checkbox"] { margin-left: 0rem; } @@ -104,6 +107,9 @@ padding: 0.25rem; margin-right: 0; } +.box .single .select { + width: 9.25rem; +} .box .selects label { flex-direction: row; width: 6.5rem; @@ -114,9 +120,9 @@ padding: 0.25rem; } -.box form .single label span, -.box form .pair label span { - min-width: 3rem; +.box form .single label span { + min-width: auto; + width: 4.25rem; padding: 0.25rem 0; } .box .single label { @@ -125,6 +131,11 @@ margin-right: 0.5px; min-width: auto; } + +.box form .pair label span { + min-width: 3rem; + padding: 0.25rem 0; +} .box .pair label { flex-direction: row; width: 6.5rem; @@ -134,10 +145,28 @@ .box .pair input[type=text] { width: 3rem; } + +.box form .single_text label span { + min-width: auto; + width: 6rem; + padding: 0.25rem 0; +} +.box .single_text input[type=text] { + width: 7rem; +} +.box .single_text label { + flex-direction: row; + justify-content: space-between; + width: 100%; + margin-right: 0.5px; + min-width: auto; +} + .box .position { font-size: smaller; margin-bottom: 0.25rem; } + button.box_corner { position: absolute; top: 1.25rem; right: 1.25rem; diff --git a/frontend/app/views/page/page.css b/frontend/app/views/page/page.css index 2998007..2e0efb9 100644 --- a/frontend/app/views/page/page.css +++ b/frontend/app/views/page/page.css @@ -117,6 +117,9 @@ .box .row.pair { justify-content: space-between; } +.box .row.pair.with_checkbox { + align-items: flex-end; +} .box .row.single { justify-content: space-between; } diff --git a/frontend/app/views/tile/components/tile.form.js b/frontend/app/views/tile/components/tile.form.js index 3066da3..c2f2f60 100644 --- a/frontend/app/views/tile/components/tile.form.js +++ b/frontend/app/views/tile/components/tile.form.js @@ -569,7 +569,7 @@ class TileForm extends Component { autoComplete="off" /> -
+
-
) } @@ -838,32 +832,40 @@ class TileForm extends Component { {temporaryTile.settings.has_audio && ( -
- - - - - +
+
+ +
+ + {!!temporaryTile.settings.audio_on_click_id && ( + + )} + +
+ +
)}
@@ -874,6 +876,15 @@ class TileForm extends Component { const { temporaryTile } = this.props return (
+
+