From 4dfdc981f4a7f5056213c970b88438c2e4bf1325 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Fri, 1 Nov 2024 22:18:30 +0100 Subject: [PATCH] oh-cell: Fix safe-area issues (#2853) Fixes #2844. Signed-off-by: Florian Hotze --- bundles/org.openhab.ui/web/src/css/app.styl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bundles/org.openhab.ui/web/src/css/app.styl b/bundles/org.openhab.ui/web/src/css/app.styl index 402465ffdb..0e489bc96b 100644 --- a/bundles/org.openhab.ui/web/src/css/app.styl +++ b/bundles/org.openhab.ui/web/src/css/app.styl @@ -320,3 +320,10 @@ html padding-left var(--f7-list-item-padding-horizontal) .item-inner padding-right var(--f7-list-item-padding-horizontal) + +// Fix safe area issues with oh-cell components, where safe areas are already respected by the wrapping oh-block +.oh-cell + margin-top var(--f7-card-expandable-margin-vertical) + margin-bottom var(--f7-card-expandable-margin-vertical) + margin-left var(--f7-card-expandable-margin-horizontal) + margin-right var(--f7-card-expandable-margin-horizontal)