Skip to content

mobile optimization#89

Merged
perber merged 22 commits into
mainfrom
feature/mobile-optimization
Jun 17, 2025
Merged

mobile optimization#89
perber merged 22 commits into
mainfrom
feature/mobile-optimization

Conversation

@perber
Copy link
Copy Markdown
Owner

@perber perber commented Jun 14, 2025

No description provided.

Copilot AI review requested due to automatic review settings June 14, 2025 20:12
@perber perber linked an issue Jun 14, 2025 that may be closed by this pull request

This comment was marked as outdated.

@perber perber changed the title Feature/mobile optimization mobile optimization Jun 14, 2025
@perber perber added this to the v0.4.0 milestone Jun 14, 2025
@perber perber requested a review from Copilot June 17, 2025 20:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances mobile responsiveness by introducing viewport-detection hooks, auto-closing the sidebar on small screens, and refactoring layouts and toolbars for better mobile UX.

  • Added useIsMobile and useAutoCloseSidebarOnMobile hooks for responsive behavior.
  • Refactored AppLayout and sidebar components to support toggleable sidebar on mobile.
  • Updated editor and toolbar components with mobile-specific tab views and responsive styles.

Reviewed Changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
ui/leafwiki-ui/src/stores/sidebar.ts Persist sidebar visibility and mode in store
ui/leafwiki-ui/src/lib/useIsMobile.ts New hook to detect mobile breakpoint
ui/leafwiki-ui/src/lib/useAutoCloseSidebarOnMobile.ts Auto-close sidebar on mobile route change
ui/leafwiki-ui/src/layout/AppLayout.tsx Mobile sidebar toggle, header refactor
ui/leafwiki-ui/src/features/tree/TreeView.tsx Height styling for full-height tree view
ui/leafwiki-ui/src/features/tree/TreeNode.tsx Show action buttons on mobile and icon size tweak
ui/leafwiki-ui/src/features/sidebar/Sidebar.tsx Added height classes for mobile layout
ui/leafwiki-ui/src/features/search/Search.tsx Wrapped search content in full-height container
ui/leafwiki-ui/src/features/page/PageViewer.tsx Added breadcrumbs and reset state on load
ui/leafwiki-ui/src/features/page/PageEditor.tsx Added wrapper class on editor container
ui/leafwiki-ui/src/features/editor/MarkdownToolbar.tsx Hid certain toolbar buttons on small screens
ui/leafwiki-ui/src/features/editor/MarkdownEditor.tsx Responsive editor/preview tabs for mobile
ui/leafwiki-ui/src/features/editor/MarkdownCodeEditor.tsx Adjusted editor width for new layout
ui/leafwiki-ui/src/components/EditorTitleBar.tsx Flex adjustments for title bar layout
ui/leafwiki-ui/package.json Added new dependency
Files not reviewed (1)
  • ui/leafwiki-ui/package-lock.json: Language not supported
Comments suppressed due to low confidence (1)

ui/leafwiki-ui/package.json:46

  • Verify that the newly added dependency vaul is correct and intended; it may be a typo or an extraneous package.
    "vaul": "^1.1.2",

Comment thread ui/leafwiki-ui/src/lib/useIsMobile.ts Outdated
Comment thread ui/leafwiki-ui/src/layout/AppLayout.tsx
Comment thread ui/leafwiki-ui/src/layout/AppLayout.tsx
Comment thread ui/leafwiki-ui/src/features/tree/TreeNode.tsx
Comment thread ui/leafwiki-ui/src/features/editor/MarkdownEditor.tsx Outdated
perber and others added 4 commits June 17, 2025 22:26
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@perber perber merged commit 7df7143 into main Jun 17, 2025
4 checks passed
@perber perber deleted the feature/mobile-optimization branch June 17, 2025 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile Optimization

2 participants