From 0404c5eb47239d7e80803e32ba9e1638b47b421e Mon Sep 17 00:00:00 2001
From: jimtng <2554958+jimtng@users.noreply.github.com>
Date: Sun, 13 Apr 2025 00:28:18 +1000
Subject: [PATCH] [BasicUI] Remove top/bottom margins in buttons-multiline
(#3148)
Before:
condensed mode:
After:
condensed mode:
```java
sitemap test {
Text item=TestString1 label="Test"
Switch item=TestSwitch1 label="Test" mappings=[ON="ON Label", OFF="OFF label"]
Text item=TestString1 label="Test"
Switch item=TestSwitch1 label="Test" mappings=[ON="ON Label", OFF="OFF label"]
}
```
Signed-off-by: Jimmy Tanagra
---
bundles/org.openhab.ui.basic/web-src/_layout.scss | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/bundles/org.openhab.ui.basic/web-src/_layout.scss b/bundles/org.openhab.ui.basic/web-src/_layout.scss
index ea4ec39ae..0bf9e2467 100644
--- a/bundles/org.openhab.ui.basic/web-src/_layout.scss
+++ b/bundles/org.openhab.ui.basic/web-src/_layout.scss
@@ -515,14 +515,14 @@
padding-bottom: 2px;
}
&__buttons-multiline {
- margin: 6px 0;
gap: 4px;
- html.ui-layout-condensed & {
- margin: 0;
- gap: 3px;
- }
padding-top: 2px;
padding-bottom: 2px;
+ html.ui-layout-condensed & {
+ gap: 3px;
+ padding-top: 0;
+ padding-bottom: 0;
+ }
display: flex;
flex-wrap: wrap;
justify-content: end;