Skip to content

Cards inside swipe-card, does not apply card_mod #98

@pickonedev

Description

@pickonedev

Hi!

I am trying to use swipe-card with two cards where I added some card_mod configs (which normally it is working as single cards), but it is not working in this situation, none of card_mods were applied. Any solution?

This is my card

type: custom:swipe-card
cards:
  - type: custom:webrtc-camera
    url: xxx
    muted: true
    mode: mse
    media: video,audio
    ui: true
    card_mod:
      style: |
        .space{width:0px !important}
        .volume{
          transform: scale(1.5);
          position:absolute;
          bottom:5px;
          right:5px}
        .screenshot, .pictureinpicture{display:none !important}
        .fullscreen{transform: scale(2);position:absolute;bottom:5px;left:5px}
  - type: custom:webrtc-camera
    url: xxx
    muted: true
    mode: mse
    ui: true
    card_mod:
      style: |
        video{width:90% !important; margin-left:-20% !important;
        transform: rotate(90deg) !important; aspect-ratio: 1;}
        ha-card{position:fixed !important; margin-top: -6px !important;
        filter:hue-rotate(-20deg) contrast(110%) saturate(110%);}

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions