thomasloven / lovelace-layout-card

🔹 Get more control over the placement of lovelace cards.
MIT License
1.08k stars 127 forks source link

iframe doesnt work in panel layout #264

Open seancmalloy opened 11 months ago

seancmalloy commented 11 months ago

My Home Assistant version: 2023.12.1

Layout-card version (FROM BROWSER CONSOLE): 2.4.4

What I am doing: trying to create single panel to fill entire dashboard (embedded look, no card boarders) with iframe card

What I expected to happen: webpage to display

What happened instead: nothing, doesnt show page

Minimal steps to reproduce:

# The least ammount of code possible to reproduce my error

type: custom:layout-card
layout_type: panel
layout: {}
cards:
  - type: iframe
    url: https://www.home-assistant.io
    aspect_ratio: 50%

# End of code

Error messages from the browser console:


By putting an X in the boxes ([X]) below, I indicate that I:

Screenshot (58)

tbrasser commented 8 months ago

You don't need layout card for this. Just set view type to panel and add the iframe card.

seancmalloy commented 8 months ago

That works. Seems not to apply default spacing for card so used card-mod to remove corners & border to fit snug in panel. Thanks.