Nerwyn / android-tv-card

A completely customizable universal remote card for Home Assistant. Supports multiple platforms out of the box.
Apache License 2.0
232 stars 12 forks source link

Example 15 no longer works #93

Closed chuppito closed 3 months ago

chuppito commented 3 months ago

Hello, Example 15 worked well before, today it no longer works. I made home assistant updates today I guess the problem comes from there.

type: custom:android-tv-card
remote_id: remote.google_tv
rows:
  - - dpad
custom_actions:
  center:
    style:
      color: rgb(94, 94, 94)
      '--size': 200px
      background: rgb(31, 31, 31)
      border-radius: 200px
      margin: '-70px'
      padding: 70px
  up:
    style:
      color: rgb(197, 199, 197)
      z-index: 2
      top: 25px
      height: 90px
      width: 300px
  down:
    style:
      color: rgb(197, 199, 197)
      z-index: 2
      bottom: 25px
      height: 90px
      width: 300px
  left:
    style:
      color: rgb(197, 199, 197)
      z-index: 2
      left: 30px
      height: 170px
      width: 90px
  right:
    style:
      color: rgb(197, 199, 197)
      z-index: 2
      right: 30px
      height: 170px
      width: 90px
row_styles:
  row-1:
    justify-content: center
  row-2:
    justify-content: center
  row-3:
    justify-content: center

![Uploading Screenshot_20240613-190742.png…]()

Nerwyn commented 3 months ago

My bad, I forgot to change dpad to nav_buttons in that example. As part of #88, I added special button grids using CSS grids, but kept it so that the dpad could still be easily created using rows and a column using a shortcut. I'll update the README to match.