feat: ENG-1706: Removing UI buttons, except for zoom and revert.#9
feat: ENG-1706: Removing UI buttons, except for zoom and revert.#9TomFanella4 merged 7 commits intomasterfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThis pull request introduces a new "minimal" UI mode for Excalidraw. The feature adds a Changes
Sequence DiagramsequenceDiagram
participant App as ExcalidrawBase
participant LayerUI as LayerUI
participant MobileMenu as MobileMenu
participant Footer as Footer
App->>App: Determine isMinimalUI from props.UIOptions.uiMode
App->>LayerUI: Pass UIOptions with uiMode
LayerUI->>LayerUI: Derive isMinimalUI (uiMode === "minimal")
LayerUI->>LayerUI: Guard: render main menu only if !isMinimalUI
LayerUI->>LayerUI: Guard: hide welcome screen, sidebars if isMinimalUI
LayerUI->>MobileMenu: Pass isMinimalUI prop
LayerUI->>Footer: Pass isMinimalUI prop
alt Minimal UI Mode (isMinimalUI = true)
MobileMenu->>MobileMenu: Render footer-only wrapper
MobileMenu->>Footer: Render with isMinimalUI=true
Footer->>Footer: Hide center tunnel, help button, exit zen mode
else Default UI Mode (isMinimalUI = false)
MobileMenu->>MobileMenu: Render full mobile menu
Footer->>Footer: Render with all UI elements
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
Description
Hide all default Excalidraw UI elements, keeping only the zoom controls, undo, and redo buttons visible.
How does it work?
I've added a "UI Mode" property, that the user can pass either "minimal" (keeps only zoom, undo and redo buttons) or "default", which keeps the default Excalidraw's UI.
Screenshot
Desktop
Mobile
Summary by CodeRabbit
New Features
Style