Hi all,
I’m a little bit struggeling with custom main-ui widget for controlling my KNX-based heating. The widget is working and can be controlled as intended, but I have a layout issue I can’t fix.
- How is the widget working
- It show’s the current temperature as item value
- Additional information is in title and subtitle
- On click a popup open the select the heating mode
- plus there is an “advanced” button which opens a popup card widget for further heating related settings
- Basic structure of the widget
- Main list item is a f7-list with media-list option enabled
- as child slots it contains under default an oh-label-item for the actual list view and a f7-popover
- code snippet see below
component: f7-list
config:
media-list: true
slots:
default:
- component: oh-label-item
config:
action: popover
icon: iconify:mdi:home-thermometer
iconColor: '=(items[props.item_ventil].state == "OPEN") ? "red" :
(themeOptions.dark === "light" ? "black" : "white")'
item: =props.item_ist
popoverOpen: ="."+props.item_mode
subtitle: '= "Soll: " + items[props.item_mode].displayState + " = " +
items[props.item_soll].state '
title: =props.titel
style:
padding-left: 0px
- component: f7-popover
[...]
- The issue
- There is a padding of 32 pixels on the level of the oh-label-item which leads to a waste of space and unaligned layout compared to standard list items
- I tried to remove the padding with a style statement in the config section of the oh-label-item which seems not to work
- removing the padding with browser-css-tools leads to the expected layout
Any ideas how to fix this? What am I missing?
Thanks,
Sebastian