WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

Shortcut position style not working

Open sgoffman opened this issue 7 months ago • 2 comments

No matter what I apply as "style" for shortcuts (even copying the sample from the docs), they never move from the bottom left. E.g.:

type: custom:webrtc-camera
streams:
  - url: >-
      rtsp://user:[email protected]:80/cam/realmonitor?channel=7&subtype=1
    name: SD
  - url: >-
      rtsp://user:[email protected]:80/cam/realmonitor?channel=7&subtype=0
    name: HD
ui: true
style: >-
  .shortcuts {left: unset; top: 25px; right: 5px; display: flex; flex-direction: column}
  .pictureinpicture {display: none} 
  .mode {display: none}

Results in this: Image

sgoffman avatar May 06 '25 01:05 sgoffman

Just tried changing ".shortcuts" to ".controls", and that works. Did the class change?

sgoffman avatar May 06 '25 01:05 sgoffman

Shortcuts and controls are differents. Shortcuts are for custom entities you would want to add to the card. Controls are for buttons provided by the card like play, fullscreen, screenshot... So, the shortcuts class will only work when you use the shortcuts entry:

type: custom:webrtc-camera
streams:
  - url: ...
shortcuts: ...
style:
  .shortcuts { ... }

TitjyDev avatar May 12 '25 12:05 TitjyDev