hello,
@crnjan
this not works, when .displaystate is empty he dont usw the .state, he says “undefined”
text: =Math.round(items[props.duration].state / 60) + " Minuten " + " ᛫ " +items[props.rating].displayState || items[props.rating].state
@RGroll
have you perhaps a idea why he shows me the scrollbar on the right side of the widget?
my code
component: f7-card
slots:
default:
- component: f7-block
config:
class:
- no padding
- no margin
slots:
default:
- component: f7-col
slots:
default:
- component: f7-block
config:
class:
- no-padding
- no-margin
slots:
default:
- component: oh-image
config:
item: =props.item
style:
width: 100%
height: auto
- component: oh-image
config:
visible: =items.myKodi_mediatype.state == "movie"
item: =props.thumb
style:
position: absolute
bottom: 16px
width: 16%
height: 40%
left: 16px
- component: oh-image
config:
visible: =items.myKodi_mediatype.state == "episode"
item: =props.thumb
style:
position: absolute
bottom: 16px
width: 40%
height: 40%
left: 16px
- component: f7-row
slots:
default:
- component: Label
config:
visible: =items.myKodi_showtitle.state !== "UNDEF"
text: =items[props.tvshowtitle].state
style:
font-size: 35px
- component: f7-row
slots:
default:
- component: Label
config:
text: =items[props.title].state
style:
font-size: 20px
width: 100%
- component: f7-col
slots:
default:
- component: Label
config:
text: =items[props.genre].state
style:
font-size: 16px
- component: Label
config:
text: =Math.round(items[props.duration].state / 60) + " Minuten " + " ᛫ " +items[props.rating].state || items[props.rating].displayState
style:
font-size: 16px
- component: f7-row
config:
class:
- padding-top
- padding-bottom
slots:
default:
- component: f7-col
slots:
default:
- component: oh-slider
config:
item: =props.progress
- component: f7-row
config:
class:
- padding-top
- padding-bottom
slots:
default:
- component: f7-col
slots:
default:
- component: oh-player-controls
config:
item: =props.mediacontrol```