hi,
I assembled a little widget with two rows. I tweaked some time to get it nice in the widget builder page. unfortunately the formatting changes on the Overview Page and even worse, on the mobile device it’s unreadable. I understand that f7 adopts for a device screen size. is it possible to automatically reformat a widget to a one-row widget on the mobile phone but keep a two-row widget on the desktop browser?
widget builder:
overview page:
mobile device:
widget code:
uid: widget_EV_loading
tags:
props:
parameters:
- description: Titel
label: Titel
name: propTitel
required: false
type: TEXT
parameterGroups:
timestamp: Dec 2, 2025, 7:22:20 PM
component: f7-card
config:
title: =props.propTitel
slots:
default:- component: f7-row
slots:
default:- component: f7-col
config:
slots:
default:- component: oh-gauge
config:
item: NRG_ActivePower
labelText: Leistung Wallbox
max: 11000
min: 0
style:- width: 100%
type: semicircle
valueTextColor: green- component: oh-trend
config:
style:- height: 90px
trendItem: PV_Inv_InputPower
trendSampling: 10- component: oh-list config: {} slots: default: - component: oh-list-item config: badge: '=(items.NRGKick.state == "ON") ? (items.NRG_Status.state) : "PowerOFF"' badgeColor: '=(items.NRGKick.state == "ON") ? "green" : "red"' icon: if:bi:ev-front iconColor: '=(items.NRG_Status.state !== "CHARGING") ? "orange" : "green"' iconUseState: true item: NRG_Status title: NRGKick Status - component: oh-list-item config: action: options actionItem: EV_ChargeMode badge: =items.EV_ChargeMode.displayState badgeColor: '=(items.EV_ChargeMode.displayState == "Sonne tanken") ? "yellow" : "gray"' icon: f7:sun_max iconColor: '=(items.EV_ChargeMode.displayState == "Sonne tanken") ? "yellow" : "green"' iconUseState: true title: Lademodus item: EV_ChargeMode - component: oh-list-item config: action: options actionItem: NRG_ChargePause badge: '=(items.NRG_ChargePause.state == "0") ? "Laden" : "Pause"' badgeColor: '=(items.NRG_ChargePause.state == "0") ? "green" : "red"' icon: '=(items.NRG_ChargePause.state == "0") ? "if:icon-park-outline:play" : "if:heroicons-outline:pause"' iconColor: '=(items.NRG_ChargePause.state == "0") ? "green" : "red"' title: Charging? - component: oh-slider-item config: color: green icon: if:game-icons:path-distance iconColor: green item: EV_RangeLimit max: 450 min: 50 scale: true step: 10 title: Range limiter [km] - component: oh-slider-item config: color: green icon: if:ix:power-supply iconColor: green item: NRG_CurrentSet max: 16 min: 6 scale: true step: 1 title: (Aktueller) Ladestrom - component: f7-col slots: default: - component: oh-image config: style: - display: block - margin-left: auto - margin-right: auto - width: 80% - opacity: 0.9 url: /static/tesla4.png - component: oh-list config: {} slots: default: - component: oh-list-item config: badge: =items.NRG_charged_energy.displayState icon: if:hugeicons:renewable-energy title: geladen [kW] - component: oh-list-item config: badge: =items.NRG_charging_rate.displayState icon: if:game-icons:path-distance title: Laderate - component: oh-list-item config: badge: =items.EV_chargedRange.displayState icon: if:game-icons:path-distance title: geladene km - component: oh-list-item config: badge: =items.NRG_total_charged_energy.displayState icon: if:hugeicons:renewable-energy iconColor: green title: Geladen seit 10/2024 - component: oh-list-item config: badge: =items.NRG_Warning.displayState icon: if:cuida:warning-outline iconColor: orange title: Warningcode - component: oh-list-item config: badge: =items.NRG_Warning.displayState icon: if:bx:error-alt iconColor: red title: Fehlercode
thanks for any advice.







