feat: improve default UI - close shapes panel and add grid/page view settings#490
Open
nisedo wants to merge 3 commits intohediet:mainfrom
Open
feat: improve default UI - close shapes panel and add grid/page view settings#490nisedo wants to merge 3 commits intohediet:mainfrom
nisedo wants to merge 3 commits intohediet:mainfrom
Conversation
The shapes panel (left sidebar) was always open by default when creating a new diagram or refreshing VSCode, which can be distracting and takes up screen space. This change uses Draw.io's native `sidebarWidth` configuration option set to 0 to hide the sidebar by default. Users can still manually open it via View → Shapes when needed. Fixes hediet#484
Add two new settings to control whether grid and page view are enabled by default when creating new diagrams: - `hediet.vscode-drawio.enableGrid` - Enable/disable grid by default - `hediet.vscode-drawio.enablePageView` - Enable/disable page view by default Both settings default to true (current behavior). Users who prefer a cleaner canvas can disable these in their VSCode settings.
- Add postinstall script to automatically init git submodules on yarn install - Add "Build from Source" section to README with one-liner install command 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
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
This PR improves the default UI experience with two changes:
1. Close Shapes Panel by Default
sidebarWidthconfiguration option set to02. New Settings for Grid and Page View Defaults
hediet.vscode-drawio.enableGrid- Control whether grid is enabled by default (default: true)hediet.vscode-drawio.enablePageView- Control whether page view is enabled by default (default: true)Motivation
Implementation
Both features use Draw.io's official configuration API:
sidebarWidth: 0- Hides the shapes panel by defaultdefaultGridEnabled- Controls grid visibilitydefaultPageVisible- Controls page view visibilityFixes #484