Skip to content

Commit 2c51457

Browse files
pekkahclaude
andauthored
fix: improve mobile menu performance and TOC visibility (#265)
* fix: improve mobile menu performance and TOC visibility - Speed up offcanvas animation from 0.3s to 0.15s for better responsiveness - Fix excessive whitespace above content on mobile devices - Fix TOC content not showing by updating selector for new offcanvas structure - Hide mobile control buttons when offcanvas is shown to prevent overlap These changes provide a smoother mobile experience with faster menu transitions and proper content visibility. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * fix: address Gemini code review feedback - Fix JavaScript variable redeclaration error that prevented auto-close functionality - Remove \!important from CSS using more specific selector for better maintainability - Clean up redundant CSS selector fallbacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * feat: implement Bootstrap 5.3 best practices and dark theme - Add full dark theme support with theme switcher in navbar - Update all colors to use CSS variables for proper theme switching - Fix navigation layout issues on mobile devices - Use Bootstrap vertical nav pills for sidebar navigation - Update navbar to follow Bootstrap 5.3 patterns - Align breakpoints with Bootstrap 5.3 standards (md: 768px) - Add proper ARIA labels for better accessibility - Implement focus-visible styles for keyboard navigation - Add smooth transitions for theme switching - Use consistent button sizing (btn-sm) throughout - Add gutter-0 to main row for proper spacing - Convert navigation toggle from anchor to button element - Add role attributes for semantic HTML 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * fix: resolve responsive layout issues and TOC positioning - Fix desktop sidebar visibility by implementing proper responsive offcanvas classes - Add offcanvas-md and offcanvas-lg for proper breakpoint behavior - Fix TOC column layout to only show on large screens (≥992px) - Resolve "On this page" heading positioning in TOC sidebar - Add explicit flex-direction and width constraints for proper vertical stacking - Update column widths to prevent layout overflow on medium screens - Ensure TOC content displays below header instead of alongside it Layout behavior: - Large screens (≥992px): All three columns visible (sidebar, content, TOC) - Medium screens (768px-991px): Sidebar and content visible, TOC as offcanvas - Small screens (<768px): Only content visible, both sidebars as offcanvas 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * fix: hide non-functional TOC button on mobile screens - Hide "On this page" button on mobile (<768px) where TOC offcanvas doesn't work properly - Keep TOC button visible only on medium screens (768px-991px) where it functions correctly - Remove debug console logging statements - Improve mobile UX by eliminating confusing non-functional UI elements Button visibility: - Mobile (<768px): Hidden - cleaner mobile experience - Medium (768px-991px): Visible - TOC works as offcanvas - Large (≥992px): Hidden - TOC visible as sidebar 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
1 parent 0d73b64 commit 2c51457

31 files changed

+13925
-52
lines changed

test-build/HEAD/01-getting-started/configuration.html

Lines changed: 560 additions & 0 deletions
Large diffs are not rendered by default.

test-build/HEAD/01-getting-started/getting-started.html

Lines changed: 828 additions & 0 deletions
Large diffs are not rendered by default.

test-build/HEAD/01-getting-started/index.html

Lines changed: 561 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
id: getting-started
2+
title: "Getting Started"
3+
index_page: xref://getting-started:getting-started.md
4+
nav:
5+
- xref://nav.md

test-build/HEAD/02-project-structure/assets.html

Lines changed: 679 additions & 0 deletions
Large diffs are not rendered by default.

test-build/HEAD/02-project-structure/file-system.html

Lines changed: 779 additions & 0 deletions
Large diffs are not rendered by default.

test-build/HEAD/02-project-structure/index.html

Lines changed: 574 additions & 0 deletions
Large diffs are not rendered by default.

test-build/HEAD/02-project-structure/tanka-docs-section.html

Lines changed: 660 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
id: project-structure
2+
title: "Project Structure"
3+
index_page: xref://project-structure:index.md
4+
nav:
5+
- xref://nav.md

test-build/HEAD/02-project-structure/tanka-docs-yml.html

Lines changed: 685 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)