Open Markobu98 opened 2 years ago
Ever make any progress on this? I have a custom card I want displayed just like this.
@skewll Try this
- card: custom:mini-media-player
entity: media_player.room_speaker
noPadding: true
wider: true
higher: true
cardStyle: |
ha-card {
height: 100%;
background: none !important;
box-shadow: none !important;
position: relative;
font-size: 0.5vw !important;
image
}
ha-card{
overflow: hidden !important;
}
:host #primaryProgress{
background: #474A52 !important;
display: flex !important;
height: 100%;
}
cardOptions:
artwork: full-cover
entity: media_player.room_speaker
power: true
progress: false
runtime: true
icon: true
source: true
volume: true
controls: false
Thanks. This partially works, but the methods for overwritting the default styles don't work so everything is stuck inside of the 100px boxes. The over flow doesn't hide, since the boxes ares tuck at 100x x 100px, or in the case since it's wider 200px x 200px. My custom card is about 120px x 200px.
I figured it out. I woke up today to see some style changes. Apparently I need to close the home assistant app out and reload to see any of these default css changes for some reason. You have set me off in the right direction and I appreciate it. Thank you.
On Thu, Apr 18, 2024, 3:51 PM slipx06 @.***> wrote:
@skewll https://github.com/skewll Try this
- card: custom:mini-media-player entity: media_player.room_speaker noPadding: true wider: true higher: true cardStyle: | ha-card { height: 100%; background: none !important; box-shadow: none !important; position: relative; font-size: 0.5vw !important; image } ha-card{ overflow: hidden !important; } :host #primaryProgress{ background: #474A52 !important; display: flex !important; height: 100%; } cardOptions: artwork: full-cover entity: media_player.room_speaker power: true progress: false runtime: true icon: true source: true volume: true controls: false
— Reply to this email directly, view it on GitHub https://github.com/DBuit/Homekit-panel-card/issues/139#issuecomment-2065450595, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARQFDKE63LWC2CVT5E75KT3Y6BFAJAVCNFSM52QYI4XKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBWGU2DKMBVHE2Q . You are receiving this because you were mentioned.Message ID: @.***>
So I wanted to use the custom mini media player as a tile but I cant get it to work. This is the code I used:
What am I doing wrong?