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

vertical-stack, horizontal-stack - no gap in old Safari #24323

Open
3 of 4 tasks
ildar170975 opened this issue Feb 19, 2025 · 1 comment
Open
3 of 4 tasks

vertical-stack, horizontal-stack - no gap in old Safari #24323

ildar170975 opened this issue Feb 19, 2025 · 1 comment

Comments

@ildar170975
Copy link
Contributor

ildar170975 commented Feb 19, 2025

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

Consider this:

type: vertical-stack
cards:
  - type: entity
    entity: sun.sun
  - type: entity
    entity: sun.sun

Shown properly in:
-- Chrome 133.0.6943.99 + Win10x64
-- iOS Companion App on iPad Air 2 (iOS 15.7.x)

Image

But there is no gap in Mac 10.15.7:

Image

Same with iOS Companion App on iPhone 5S (iOS 12.5.7).
Same with horizontal-stack.

Managed to hack this on Mac by setting display: grid for div#root:
Image
Not sure if this is a proper solution - but may be some kind of mediaquery (or another adaptive way) should be used for old clients?

Describe the behavior you expected

Same nice look as in modern browsers.

Steps to reproduce the issue

as above

What version of Home Assistant Core has the issue?

2025.2.4

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue?

Safari

Which operating system are you using to run this browser?

Mac OS 10.15.7

State of relevant entities

Problem-relevant frontend configuration

Javascript errors shown in your browser console/inspector

Additional information

No response

@ildar170975
Copy link
Contributor Author

ildar170975 commented Feb 19, 2025

I recall this was already discussed: #20192 (comment)
According to https://caniuse.com/?search=column-gap, column-gap for grid is provided (partially) for older version of Safari than for flex.

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

1 participant