Skip to content

feat(ui): sidebar & preview UX improvements#3

Merged
hoiyada7-maker merged 4 commits into
mainfrom
feat/ui-improvements
Jun 2, 2026
Merged

feat(ui): sidebar & preview UX improvements#3
hoiyada7-maker merged 4 commits into
mainfrom
feat/ui-improvements

Conversation

@hoiyada7-maker
Copy link
Copy Markdown
Owner

Summary

  • TOC link navigation: clicking #hash links in markdown preview scrolls smoothly to the target heading (GitHub-style slug generation added to markdown renderer)
  • Unlimited sidebar width: removed 420px max-width cap
  • Tree indentation: vertical guide lines now start at depth-1, giving consistent visual hierarchy from the first level
  • Scrollbars: explicit scrollbar-width + ::-webkit-scrollbar styles for editor and preview panes
  • Favorites context menu: right-clicking a Favorites item opens the same context menu as regular file rows
  • Remove hover highlights: sidebar rows and section headers no longer change color on cursor hover
  • Equal collapsed heights: EXPLORER / FAVORITES / folder headers standardized to min-height: 34px
  • Remove Explorer↔Favorites divider: border-top removed from the Favorites section
  • Hover inset: rootfolder header hover uses inset: 0 1px pseudo-element (1px smaller than clickable area)

Test plan

  • Open a markdown file with TOC and click heading links → scrolls to target
  • Drag sidebar wider than 420px
  • Open a folder → depth-1 items show | guide line
  • Scrollbars visible in editor and preview on long content
  • Right-click Favorites item → context menu appears
  • No background color change on hovering file/folder rows
  • EXPLORER / FAVORITES / folder headers visually same height
  • No divider line between EXPLORER and FAVORITES

🤖 Generated with Claude Code

hoiyada7-maker and others added 4 commits June 2, 2026 19:59
feat(ui): toc nav, unlimited sidebar width, tree indentation, scrollbars, favorites context menu

- Preview: clicking #hash links in rendered markdown scrolls smoothly to the target heading
- Sidebar: remove max-width cap (was 420px) so the panel can be dragged wider
- Sidebar tree: drop double-indentation from CSS margin-left; use depth-based CSS var for guide-line alignment
- Editor/Preview: add explicit webkit scrollbar styles so scrollbars appear on overlay-scrollbar platforms (macOS)
- Favorites: right-click opens the same context menu as regular file rows

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@
fix(ui): toc anchors, tree indent depth, scrollbar visibility, hover inset

- markdown.ts: add GitHub-style heading ID slugifier so TOC #hash links resolve
- root-folder: start FileTree at depth=1 so first-level items are visually indented below root header
- file-tree: update empty-folder check to depth<=1 to match new starting depth
- panes.css: add CSS-standard scrollbar-width/color alongside webkit for robust cross-platform scrollbar display
- sidebar.css: rootfolder header hover uses ::before pseudo-element with inset:0 1px so highlight is 1px smaller than the clickable area

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@
fix(ui): remove hover highlights, equalize section heights, remove favorites divider, add depth-1 guide line

- sidebar: remove row hover background (mdv-tree__row:hover)
- sidebar: remove rootfolder header hover highlight (::before approach removed)
- sidebar: standardize all collapsed section headers to min-height 34px, remove margin-top
- sidebar: remove border-top from favorites section (no divider between explorer header and favorites)
- sidebar: remove inter-rootfolder margins for compact layout
- sidebar: extend vertical guide line to depth-1 trees via .mdv-rootfolder .mdv-tree::before

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@
fix(rust): restore macos-private-api feature dropped during tauri dev

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@
@hoiyada7-maker hoiyada7-maker merged commit ff61b9b into main Jun 2, 2026
2 checks passed
@hoiyada7-maker hoiyada7-maker deleted the feat/ui-improvements branch June 2, 2026 14:01
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.

1 participant