Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): let the phone scroller height follow dvh
Yudhi Armyndharisdff017355b76
diff --git a/dashboard/src/components/Layout.css b/dashboard/src/components/Layout.cssindex adef95e7f..de792bbe9 100644--- a/dashboard/src/components/Layout.css+++ b/dashboard/src/components/Layout.css@@ -430,6 +430,7 @@padding-top: 56px;height: 100vh;height: 100dvh;+ min-height: 0;overflow-y: auto;-webkit-overflow-scrolling: touch;}diff --git a/dashboard/src/components/Layout.css.test.ts b/dashboard/src/components/Layout.css.test.tsindex dcf1b9b53..cf4eb09a0 100644--- a/dashboard/src/components/Layout.css.test.ts+++ b/dashboard/src/components/Layout.css.test.ts@@ -108,6 +108,9 @@ test('the full-height sidebar and mobile scroller follow the dynamic viewport',const scroller = find('.main-content.mobile').find(r => r.media);assert.ok(scroller, 'no mobile .main-content rule');assert.deepEqual(valuesOf(scroller.body, 'height'), ['100vh', '100dvh']);+ // .main-content keeps min-height: 100vh, which beats a smaller height: unless the scroller resets it, the dvh line+ // above never takes effect and the scroller stays as tall as the large viewport.+ assert.deepEqual(valuesOf(scroller.body, 'min-height'), ['0']);});test('the language menu is bounded by the dynamic viewport too, since it hangs off the sidebar bottom', () => {