Hi all,
i have problems to figure out how to properly format my widget…
I tried to create a row with two colums. One column should show the temperature and should be left algigned, the other column in the same row should be right aligned. I think its working so far, even if I#m not sure if i did it the correct way.
But i don’t want line wraps in a f7-col. The Label (Navigation arrow on the right) and also the icon should be in one line and i cannot figure out how to do this. I could use absolute position, but that seems completely wrong to me.
I’m sorry for such a somehow simple question, but i’m really struggling with programming those YAML stuff as it’s quite different from normal css to me.
uid: Tuya_Thermostat2
tags: []
props:
parameters:
- description: A text prop
label: headline
name: headline
required: false
type: TEXT
- context: item
description: An item to control
label: Item
name: item
required: false
type: TEXT
parameterGroups: []
timestamp: Jan 19, 2022, 11:41:32 AM
component: f7-card
config:
style:
--f7-safe-area-right: 0
--f7-safe-area-left: 0
action: group
actionGroupPopupItem: gAquarium
slots:
content:
- component: f7-card
config:
style:
width: 100%
slots:
default:
- component: f7-block
config:
class:
- no-padding
style:
margin: -4px
slots:
default:
- component: f7-row
config:
class:
- justify-content-left
slots:
default:
- component: f7-icon
config:
f7: thermometer
style:
font-size: 15px
margin-left: -2px
margin-top: 4px
- component: Label
config:
text: Titel
style:
font-size: 15px
margin-top: 0px
left: 0px
- component: f7-icon
config:
f7: battery_100
style:
margin-top: 4px
position: absolute
right: 0px
- component: f7-row
config:
class:
- justify-content
slots:
default:
- component: f7-col
config:
style:
text-align: left
margin-top: 10px
slots:
default:
- component: Label
config:
text: 20.00°C
style:
font-size: 40px
- component: f7-col
config:
style:
text-align: right
margin-top: 10px
flex-wrap: nowrap
white-space: nowrap
slots:
default:
- component: f7-icon
config:
f7: location
- component: Label
config:
text: 100%
- component: f7-row
config:
class:
- justify-content-left
slots:
default:
- component: f7-icon
config:
f7: drop
style:
margin-left: 45px
margin-top: 12px
font-size: 20px
- component: Label
config:
text: 50%
style:
font-size: 25px
- component: oh-trend
config:
trendItem: ThermostatBuro_ThermostatTemperatur
style:
--f7-theme-color-bg-color: transparent
background: var(--f7-theme-color-bg-color)
filter: opacity(30%)
position: absolute
top: 0
height: 100%
width: 100%
- component: f7-row
config:
class:
- justify-content-space-around
- padding-top
slots:
default:
- component: oh-button
config:
action: options
text: Betriebsart
iconF7: power
fill: false
outline: true
actionOptions: close=Heizung aus, open=Heizung ein, normal=Auto
- component: oh-stepper
config:
min: 15
max: 25
step: 0.5
br