feat(ui): sidebar & preview UX improvements#3
Merged
Conversation
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> @
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#hashlinks in markdown preview scrolls smoothly to the target heading (GitHub-style slug generation added to markdown renderer)scrollbar-width+::-webkit-scrollbarstyles for editor and preview panesmin-height: 34pxinset: 0 1pxpseudo-element (1px smaller than clickable area)Test plan
|guide line🤖 Generated with Claude Code