From 6d5e34b196e06009dc1d9a77f842d8035dc42de4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Mar 2026 02:44:15 +0000 Subject: [PATCH 1/2] Initial plan From 68847c75f28b44e054dd47420743254386241d8f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Mar 2026 02:59:38 +0000 Subject: [PATCH 2/2] fix: add tablet hamburger menu and mobile CSS improvements for docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add hamburger/dropdown nav to CustomHeader.astro for 769–900px tablets to prevent the 7-link header from overflowing on iPad-size viewports. Includes ARIA attributes, keyboard (Escape) support, outside-click dismissal, focus management, and astro:page-load re-initialization. - Hide full nav at 769–900px in custom.css and show .tablet-nav-wrapper - Disable light-glow-move background animation on mobile (≤768px) to reduce CPU/battery usage - Add word-break: break-word to inline code on mobile to prevent horizontal overflow Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- docs/src/components/CustomHeader.astro | 135 +++++++++++++++++++++++++ docs/src/styles/custom.css | 29 ++++-- 2 files changed, 155 insertions(+), 9 deletions(-) diff --git a/docs/src/components/CustomHeader.astro b/docs/src/components/CustomHeader.astro index 8e23bfb1343..10b1a644eaf 100644 --- a/docs/src/components/CustomHeader.astro +++ b/docs/src/components/CustomHeader.astro @@ -15,6 +15,23 @@ const base = import.meta.env.BASE_URL; Blog Peli's Agent Factory + + +
+ + +
+ + + diff --git a/docs/src/styles/custom.css b/docs/src/styles/custom.css index 721a1eb6890..d60c44d846d 100644 --- a/docs/src/styles/custom.css +++ b/docs/src/styles/custom.css @@ -1594,20 +1594,31 @@ main, word-break: break-word; overflow-wrap: break-word; } + + /* Also wrap inline code on mobile to avoid horizontal overflow */ + .sl-markdown-content code { + word-break: break-word; + } + + /* Disable heavy background animation on mobile to reduce CPU/battery usage */ + :root[data-theme='light'] body::before { + animation: none; + } } -/* Additional tablet-specific fixes (iPad Pro 11 at 834px) */ -@media (min-width: 768px) and (max-width: 900px) { - /* Ensure header doesn't overflow on tablets */ +/* Tablet-specific fixes (iPad Pro 11 at 834px) — header hamburger */ +@media (min-width: 769px) and (max-width: 900px) { + /* Hide full nav to prevent overflow; hamburger replaces it */ .custom-header-links { - gap: 0.5rem !important; + display: none !important; } - - .header-link { - font-size: 0.8125rem !important; - padding: 0.25rem 0.5rem !important; + + /* Show tablet hamburger wrapper */ + .tablet-nav-wrapper { + display: flex !important; + align-items: center; } - + /* Ensure content has proper padding on tablets */ .sl-markdown-content { padding-left: 1rem;