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

Sections: unable to place more than 1 cards next to 3x3 card. #22846

Open
3 of 4 tasks
AJediIAm opened this issue Nov 16, 2024 · 4 comments
Open
3 of 4 tasks

Sections: unable to place more than 1 cards next to 3x3 card. #22846

AJediIAm opened this issue Nov 16, 2024 · 4 comments

Comments

@AJediIAm
Copy link

AJediIAm commented Nov 16, 2024

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

I'm trying to create a section with a 3x3 card next to 3 1x1 cards. After placing the first 1x1 card, the option to place additional cards disappears.

Update: the picture element turned out to be a 3x1 card while showing as a 3x3 or 3x4 card. This is why only 1 card could be placed next to it.

Screenshot_20241116-145036

Describe the behavior you expected

I would expect to be able to place 3 1x1 cards next to the 3x3 card.

Update:
I would expect a picture element to have a height of at least the height of the picture.

Steps to reproduce the issue

  1. Add a 3x3 card to the sections dashboard
  2. Add a 1x1 card next to the 3x3 card
  3. Observe how it is no longer possible to add additional cards next to the 3x3 card while there still is space.
    ...

Update:

  1. Add a picture element to a sections dashboard.
  2. Observe how the height is set to 1 while the actual hight may look closer to 3 or 4.

What version of Home Assistant Core has the issue?

20241106.2

What was the last working version of Home Assistant Core?

2024.11.2

In which browser are you experiencing the issue with?

Chrome 131.0.6778.39

Which operating system are you using to run this browser?

Android

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

@wendevlin
Copy link
Contributor

Hi @AJediIAm,
I cannot reproduce it. Can you try to move around the big card instead of the small ones?

@AJediIAm
Copy link
Author

Hi @AJediIAm, I cannot reproduce it. Can you try to move around the big card instead of the small ones?

Hi @wendevlin,
Thanks for trying it out.

After a bit of fiddling, I realized the picture element card had a layout of 1 high and 3 wide while it showed the picture at its full height (which is closer to 4 high).
This explains why only one button could be placed next to it.
After changing the height, the picture element adjusted accordingly and the buttons could be lined up according to the now correct height.

So, the actual bug is the initial height of the picture element.

@piitaya
Copy link
Member

piitaya commented Nov 19, 2024

Hi 👋 Yeah all cards are not migrated yet to support the grid system. As a workaround, you have to set the size manually for now.

@AJediIAm
Copy link
Author

Hi 👋 Yeah all cards are not migrated yet to support the grid system. As a workaround, you have to set the size manually for now.

Ok, so it's a known issue.
Any reason to keep the issue open for tracking?

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