Chart page: Fix wrong height and top position in sheets (#2992)

Signed-off-by: Florian Hotze <dev@florianhotze.com>
pull/2993/head
Florian Hotze 2025-01-08 18:33:42 +01:00 committed by GitHub
parent 7034ad9a0a
commit ea5121d77e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,11 @@
&.sheet-opened
height calc(var(--oh-chart-page-height) - var(--f7-sheet-height)) !important
.sheet-modal-inner
.oh-chart-page-chart
top 0
height calc(var(--oh-chart-page-height) + var(--f7-toolbar-height)) !important
.device-ios /* fix chart rendering issues on iOS >= 17.4 */
.oh-chart-page-chart
--oh-chart-page-height calc(100dvh - var(--f7-safe-area-top) - var(--f7-safe-area-bottom) - var(--f7-navbar-height)) /* use dvh because with % the height is calculated to 0px and ECharts fails to render */