Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizontal version #39

Closed
circa1665 opened this issue Dec 26, 2018 · 4 comments
Closed

Horizontal version #39

circa1665 opened this issue Dec 26, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@circa1665
Copy link

Could there be a horizontal version of this too?

@gabe565
Copy link
Contributor

gabe565 commented Feb 3, 2019

Actually this seems to work horizontally already! It's a little bit of a hack, but works fine!

If you nest a horizontal stack within the vertical-stack-in-card, the result will be a single card with horizontal elements.

@ofekashery ofekashery added the enhancement New feature or request label Feb 5, 2019
@rgogada
Copy link

rgogada commented Feb 21, 2019

+1 for horizontal-stack-in-card

image

@rgogada
Copy link

rgogada commented Feb 21, 2019

here is the yaml

card:
  cards:
    - cards:
        - card:
            artwork: full-cover
            background: /local/images/sonos_logo.png
            entity: media_player.frontroom_sonos
            hide_icon: true
            hide_media_info: true
            hide_mute: true
            hide_power: true
            name: Frontroom
            type: 'custom:mini-media-player'
          style:
            background-size: 100% 100%
            border-radius: 15px 0px 0px 0px
            overflow: hidden
          type: 'custom:card-modder'
        - card:
            artwork: full-cover
            background: /local/images/sonos_logo.png
            entity: media_player.kitchen_sonos
            hide_icon: true
            hide_media_info: true
            hide_mute: true
            hide_power: true
            name: Kitchen
            type: 'custom:mini-media-player'
          style:
            background-size: 100% 100%
            border-radius: 0px 0px 0px 0px
            overflow: hidden
          type: 'custom:card-modder'
        - card:
            artwork: full-cover
            background: /local/images/sonos_logo.png
            entity: media_player.lounge_sonos
            hide_icon: true
            hide_media_info: true
            hide_mute: true
            hide_power: true
            name: Lounge
            type: 'custom:mini-media-player'
          style:
            background-size: 100% 100%
            border-radius: 0px 15px 0px 0px
            overflow: hidden
          type: 'custom:card-modder'
      type: horizontal-stack
    - cards:
        - card:
            artwork: full-cover
            background: /local/images/sonos_logo.png
            entity: media_player.bedroom_sonos
            hide_icon: true
            hide_media_info: true
            hide_mute: true
            hide_power: true
            name: Bedroom
            type: 'custom:mini-media-player'
          style:
            background-size: 100% 100%
            border-radius: 0px 0px 0px 0px
            overflow: hidden
          type: 'custom:card-modder'
        - card:
            artwork: full-cover
            background: /local/images/sonos_logo.png
            entity: media_player.office_sonos
            hide_icon: true
            hide_media_info: true
            hide_mute: true
            hide_power: true
            name: Office
            type: 'custom:mini-media-player'
          style:
            background-size: 100% 100%
            border-radius: 0px 0px 0px 0px
            overflow: hidden
          type: 'custom:card-modder'
        - card:
            artwork: full-cover
            background: /local/images/sonos_logo.png
            entity: media_player.bathroom_sonos
            hide_icon: true
            hide_media_info: true
            hide_mute: true
            hide_power: true
            name: Bathroom
            type: 'custom:mini-media-player'
          style:
            background-size: 100% 100%
            border-radius: 0px 0px 0px 0px
            overflow: hidden
          type: 'custom:card-modder'
      type: horizontal-stack
    - cards:
        - card:
            artwork: full-cover
            background: /local/images/sonos_logo.png
            entity: media_player.rishiroom_sonos
            hide_icon: true
            hide_media_info: true
            hide_mute: true
            hide_power: true
            name: Rishiroom
            type: 'custom:mini-media-player'
          style:
            background-size: 100% 100%
            border-radius: 0px 0px 0px 15px
            overflow: hidden
          type: 'custom:card-modder'
        - card:
            artwork: full-cover
            background: /local/images/sonos_logo.png
            entity: media_player.office_amp
            hide_icon: true
            hide_media_info: true
            hide_mute: true
            hide_power: true
            name: Backyard
            type: 'custom:mini-media-player'
          style:
            background-size: 100% 100%
            border-radius: 0px 0px 0px 0px
            overflow: hidden
          type: 'custom:card-modder'
        - card:
            artwork: full-cover
            background: /local/images/sonos_logo.png
            entity: media_player.office_amp
            hide_icon: true
            hide_media_info: true
            hide_mute: true
            hide_power: true
            name: Guest
            type: 'custom:mini-media-player'
          style:
            background-size: 100% 100%
            border-radius: 0px 0px 15px 0px
            overflow: hidden
          type: 'custom:card-modder'
      type: horizontal-stack
  type: 'custom:vertical-stack-in-card'
id: Media
type: 'custom:card-modder'

@ofekashery
Copy link
Owner

Added in the 0.3.1 version 🎉
Just add horizontal: true to your card config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants