Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): stack the plugin status rail below 950px
Yudhi Armyndharis37e66147f773
diff --git a/dashboard/src/pages/Plugins.css b/dashboard/src/pages/Plugins.cssindex 28a115ffd..67b258047 100644--- a/dashboard/src/pages/Plugins.css+++ b/dashboard/src/pages/Plugins.css@@ -809,7 +809,9 @@word-break: break-all;}-@media (max-width: 860px) {+/* Beside the 280px rail the card grid keeps its 320px minimum track, which needs 948px of viewport with+ the sidebar open; below that the rail stacks above the cards. */+@media (max-width: 950px) {.plugins-page .plugins-layout {flex-direction: column;}diff --git a/dashboard/src/pages/Plugins.responsive.test.ts b/dashboard/src/pages/Plugins.responsive.test.tsindex d49e834a3..0b227667b 100644--- a/dashboard/src/pages/Plugins.responsive.test.ts+++ b/dashboard/src/pages/Plugins.responsive.test.ts@@ -22,3 +22,15 @@ test('below that the install tabs wrap to a row of their own', () => {assert.equal(decl(base.body, 'width'), '100%');assert.equal(decl(base.body, 'order'), '3');});++// Beside the 280px status rail the card grid keeps a 320px minimum track. With the sidebar open that needs 948px+// of viewport; from 861px up to there the cards were wider than their column and lost their right edge and their+// action buttons. Below that the rail stacks above the cards.+test('the status rail stacks above the cards before the card column gets too narrow', () => {+ const stacked = rules.filter(+ r => r.selectors.includes('.plugins-page .plugins-layout') && decl(r.body, 'flex-direction') === 'column',+ );+ assert.equal(stacked.length, 1, 'expected one rule that stacks the rail');+ const width = Number(/max-width: (\d+)px/.exec(stacked[0].media)?.[1]);+ assert.ok(width >= 950, `the rail stacks at ${stacked[0].media || 'every width'}`);+});