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

Content cards doesn't get fit to swipe card's size #76

Open
panhans opened this issue Jun 16, 2023 · 2 comments
Open

Content cards doesn't get fit to swipe card's size #76

panhans opened this issue Jun 16, 2023 · 2 comments

Comments

@panhans
Copy link

panhans commented Jun 16, 2023

Hello,

I don't know if I am missing somthing, maybe an option. But when I put a swipe-card inside a grid the inner cards don't get fit to the swipe card size.

Expected (without swipe card):
Bildschirmfoto 2023-06-16 um 12 53 50

How it looks (with swipe card - the size of swiper-card is all the way to the grid but not its child cards):
Bildschirmfoto 2023-06-16 um 08 55 42

@b4dpxl
Copy link

b4dpxl commented Jul 5, 2023

I've been seeing similar things since updating to HA 2023.6:

image

In this case the second row in the screenshot above is a horizontal-stack inside a swipe-card, and it's too wide. All the items should be the same width in the screenshot. I've got the same behaviour with grid instead of stack. The first row isn't a swipe.

Inspecting the source in the browser, the stack is defaulting to 492px wide, regardless of the screen resolution:

image

Switching dashboards is sometimes enough to make it resize to fit, but not always. I have tried applying card_width but that doesn't seem to apply. Using parameters -> width applies, but that's a static width.

@Gavergracht
Copy link

is there a solution for the problem ?

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

No branches or pull requests

3 participants