Open ronschaeffer opened 3 months ago
In case it's useful...
Forcing desktop view in the webview of Fully Kiosk version 1.55.1-play displays two columns compared to one column only without desktop view enabled. ("Mozilla/5.0 (Linux; Android 10; SM-T830 Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/123.0.6312.40 Safari/537.36")
In contrast, both the default and desktop views in Chrome Android display one column.
Columns of the sections view doesn't have the same width of the masonry layout as it's a new view.
With 2024.4
release, we introduced some theme variables for sections, you should be able to tweak the column sizes to fit your device size : https://github.com/home-assistant/frontend/pull/20099
Here's the theme variables with default values:
ha-view-sections-row-gap: 8px
ha-view-sections-column-gap: 32px
ha-view-sections-column-min-width: 320px
ha-view-sections-column-max-width: 500px
Great. That looks like it will work. I'll try it out and report back.
Adjusting the column-gap
and column-max-width
worked. Thanks very much. It would still be useful to be able to set the minimum number of columns through the UI instead. Should I leave this issue as a feature request or raise a new one? (Or post it Feature Requests on the HA Forum instead?)
Here are the working theme and the resulting dashboard.
groundfloortab_Mushroom Rounded Shadow:
# Home Assistant override
ha-card-border-width: 0
ha-card-border-radius: 36px
primary-color: rgb(2, 119, 189)
accent-color: rgb(3,218,198)
#ha-view-sections-row-gap: 8px #default
ha-view-sections-column-gap: 8px #for portrait mode
#ha-view-sections-column-min-width: 320px #default
ha-view-sections-column-max-width: 346px #for portrait mode
modes:
light:
ha-card-box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.16)
dark:
primary-background-color: rgb(18, 15, 18)
app-header-background-color: rgb(24, 20, 24)
ha-card-box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.5)
mushroom-button-background-color: rgb(24, 210, 24)
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Checklist
Describe the issue you are experiencing
Tablet model tried: Samsung Galaxy Tab S4 / 10.5" 1600 x 2560 Applies to both HA Companion Android app and Chrome on Android. See version details below.
Using the new Sections view on a tablet in portrait mode, the dashboard displays a single column of cards with wide empty borders, whereas the Masonry view displays two columns with essentially the same content, making much better use of the screen area.
I don't know if this should be a bug report or a feature request. If a feature request, the implementation could be to allow setting of a minimum number of columns similar to the maximum number of columns setting introduced in 2024.4 beta.
Describe the behavior you expected
Dashboard in portrait mode should display in two columns with Section view for this screen width as it does in Masonry view for this screen width.
Steps to reproduce the issue
What version of Home Assistant Core has the issue?
2024.4.0b3
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Chrome Android 123.0.6312.80 / HA Companion Android app 2024.1.5-full
Which operating system are you using to run this browser?
Android 10
State of relevant entities
No response
Problem-relevant frontend configuration
Javascript errors shown in your browser console/inspector
No response
Additional information
Sections view (from YAML above) showing single column in HA Companion Android app:![Screenshot_20240401-193723_Home Assistant](https://github.com/home-assistant/frontend/assets/12379923/1498ec12-6194-4e0e-89de-3d098c1f887a)
Sections view (from YAML above) showing single column in Android Chrome:![Screenshot_20240401-194310_Chrome](https://github.com/home-assistant/frontend/assets/12379923/d0d0281a-b8a2-4808-b22b-54ec96a2297f)
Masonry view with essentially the same content showing two columns in HA Companion Android app:![Screenshot_20240401-193819_Home Assistant](https://github.com/home-assistant/frontend/assets/12379923/1716bdec-8dba-4f2c-b76a-b50f6b29bac6)