From 6db65edd59fe3a4782323764c700aa466692e732 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Fri, 25 Oct 2024 21:55:31 +0200 Subject: [PATCH 01/33] webapp: right-align labels for inputs on non-sm viewports this change tries to achieve a pleasing look of input forms by right-aligning the texts of labels. the input form now looks similar to a table, achieving a cleaner look, especially for forms where the labels have varying text lenghts. --- webapp/src/scss/styles.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webapp/src/scss/styles.scss b/webapp/src/scss/styles.scss index f97d33894..9977f9215 100644 --- a/webapp/src/scss/styles.scss +++ b/webapp/src/scss/styles.scss @@ -4,3 +4,10 @@ .container-fluid .row { font-feature-settings: 'tnum'; } + +@include media-breakpoint-up(sm) { + label.col-form-label, + label.form-check-label { + text-align: end; + } +} From 630b5c0bfee133264f4f6c15893e9c98b991346f Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Fri, 25 Oct 2024 22:13:34 +0200 Subject: [PATCH 02/33] webapp: last table row shall have no bottom border similar to the first row which has no border at the top. --- webapp/src/scss/styles.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webapp/src/scss/styles.scss b/webapp/src/scss/styles.scss index 9977f9215..fb6b75857 100644 --- a/webapp/src/scss/styles.scss +++ b/webapp/src/scss/styles.scss @@ -11,3 +11,8 @@ text-align: end; } } + +table.table tr:last-child th, +table.table tr:last-child td { + border-bottom: 0; +} From f4ce0ba4377452f62dd88cf6a7bd770758623116 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Fri, 25 Oct 2024 22:15:40 +0200 Subject: [PATCH 03/33] webapp: remove table's bottom margin we don't need a margin at the bottom of tables in general. not sure why this is even a thing in bootstrap. this change, in particular, makes the space between a table and a parent card symmetric on all sides. --- webapp/src/components/InverterChannelInfo.vue | 2 +- webapp/src/scss/styles.scss | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp/src/components/InverterChannelInfo.vue b/webapp/src/components/InverterChannelInfo.vue index 94dbc57af..00b514b42 100644 --- a/webapp/src/components/InverterChannelInfo.vue +++ b/webapp/src/components/InverterChannelInfo.vue @@ -21,7 +21,7 @@
- +