Skip to content

fix: Phoenix sidebar resize broken and redundant space reservation in title bar in desktop apps #3021

Open
devvaannsh wants to merge 3 commits into
mainfrom
pluto/core
Open

fix: Phoenix sidebar resize broken and redundant space reservation in title bar in desktop apps #3021
devvaannsh wants to merge 3 commits into
mainfrom
pluto/core

Conversation

@devvaannsh

Copy link
Copy Markdown
Member

This PR holds the following fixes:

  1. Sidebar collapsing on a quick click after resize - after resizing the sidebar, clicking on the editor instantly closed the sidebar. Found that there's a shield that stays on screen for 300ms (the idea was for that to catch double clicks on the sidebar resizer). Problem is the shield covers the whole window, so if we clicked anywhere (like the editor) within 300ms, it got treated as a double click and collapsed the sidebar.
    Fix: removed the shield after a real drag, and a click only counts as a double click if it actually lands on the resizer (or near that)...

  2. Empty space reserved for the title bar in desktop apps - In the desktop app the OS window title bar already shows the file name, so our in-app title is hidden. But we were still reserving layout space for it, leaving a useless gap above the editor. Skipped all that title layout work for the native app.

@sonarqubecloud

Copy link
Copy Markdown

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