Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): let the Plugins status rail stay pinned
Yudhi Armyndharis39724cb7d49b
diff --git a/dashboard/src/components/Layout.css b/dashboard/src/components/Layout.cssindex 9138bfb58..fedcfab1a 100644--- a/dashboard/src/components/Layout.css+++ b/dashboard/src/components/Layout.css@@ -314,7 +314,9 @@width: calc(100% - 260px);background: var(--bg-light);min-height: 100vh;- overflow-x: hidden;+ /* clip, not hidden: hidden makes this the scroll container that a sticky child (the Plugins status rail)+ sticks to, and it never scrolls. */+ overflow-x: clip;transition:margin-left 0.3s ease,width 0.3s ease;diff --git a/dashboard/src/components/Layout.css.test.ts b/dashboard/src/components/Layout.css.test.tsindex 6baa2c467..b08826a3b 100644--- a/dashboard/src/components/Layout.css.test.ts+++ b/dashboard/src/components/Layout.css.test.ts@@ -69,6 +69,15 @@ test('the closed mobile sidebar slides off the right edge under RTL, and opens bassert.equal(decl(open[0].body, 'transform'), 'translateX(0)');});+// The Plugins page pins its status rail with position: sticky. overflow-x: hidden makes .main-content a scroll+// container (overflow-y computes to auto), the nearest one a sticky box sticks to, and that one never scrolls, so+// the rail scrolled away with the page. clip hides the overflow without that.+test('the main content clips sideways overflow without becoming a scroll container', () => {+ const main = find('.main-content').find(r => !r.media);+ assert.ok(main, 'no base .main-content rule');+ assert.equal(decl(main.body, 'overflow-x'), 'clip');+});+test('the collapse chevron is mirrored once, by the icon Layout.tsx picks', () => {assert.match(tsx, /isRtl \? \(\s*<ChevronLeft/, 'Layout.tsx no longer swaps the chevron for RTL');for (const r of all.filter(r => r.selectors.some(s => s.includes('.collapse-toggle svg')))) {