From b6118058ced19f53ecf9d4a980e85fb80c80eba7 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Tue, 10 Dec 2024 20:52:07 +0100 Subject: [PATCH] Fix safe-area issues (#2910) This fixes safe-area issues all over the UI: - Issues where the safe area was applied to elements where it should not, e.g. the settings menus' entries. - Issues where the safe area was missing, e.g. model cards, which were hidden under the notch. Due to webpack's CssMinimizerPlugin minimizing `0px` to `0` when overriding the Framework7 safe area CSS vars, which then broke the calculation, a new .css file has been introduced. --------- Signed-off-by: Florian Hotze --- .../src/components/addons/addons-section.vue | 4 +++- .../org.openhab.ui/web/src/components/app.vue | 24 ++++++++++++++----- bundles/org.openhab.ui/web/src/css/app.styl | 9 +++++-- bundles/org.openhab.ui/web/src/css/nomini.css | 8 +++++++ bundles/org.openhab.ui/web/src/js/app.js | 1 + .../web/src/pages/home/model-tab.vue | 19 +++++++-------- .../pages/settings/things/thing-details.vue | 8 +++---- 7 files changed, 49 insertions(+), 24 deletions(-) create mode 100644 bundles/org.openhab.ui/web/src/css/nomini.css diff --git a/bundles/org.openhab.ui/web/src/components/addons/addons-section.vue b/bundles/org.openhab.ui/web/src/components/addons/addons-section.vue index a711a8afc5..1c249d0c9b 100644 --- a/bundles/org.openhab.ui/web/src/components/addons/addons-section.vue +++ b/bundles/org.openhab.ui/web/src/components/addons/addons-section.vue @@ -38,6 +38,9 @@