From b885a1f8a6575d3acd99ccc3a7c7adb0e1baa1f1 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sat, 9 May 2026 19:03:09 +0200 Subject: [PATCH] fix(index): improve mobile dashboard layout - Move System History action from the 3X-UI card into the System Load card's #extra slot so the chart opener sits next to live load values. - Fix card widths on mobile by switching :sm="24" to :xs="24"; the sm breakpoint only kicks in at >=576px, so phones in portrait had no span set and cards shrank to content width. - Restore vertical spacing between cards (vertical gutter was 0 on mobile) and reduce content padding on small screens, reserving 64px top so the sidebar drawer handle no longer overlaps the StatusCard. - Wrap the 3X-UI link tags in a flex container so version/Telegram/docs chips wrap with consistent spacing on narrow widths. - Make Sparkline's viewBox track its actual rendered pixel width via ResizeObserver so X-axis time labels stop being squashed horizontally by preserveAspectRatio="none" on narrow containers. - Make the SystemHistory modal width responsive (95vw on mobile, was a fixed 900px that overflowed phone viewports). Co-Authored-By: Claude Opus 4.7 --- frontend/src/components/Sparkline.vue | 38 +++++++++- frontend/src/pages/index/IndexPage.vue | 74 +++++++++++++------ frontend/src/pages/index/StatusCard.vue | 4 +- .../src/pages/index/SystemHistoryModal.vue | 5 +- 4 files changed, 90 insertions(+), 31 deletions(-) diff --git a/frontend/src/components/Sparkline.vue b/frontend/src/components/Sparkline.vue index bb626d62..39d6e982 100644 --- a/frontend/src/components/Sparkline.vue +++ b/frontend/src/components/Sparkline.vue @@ -1,5 +1,5 @@