Skip to content

sidebar is now resizeable - #438

Open
AmeenahRazi wants to merge 2 commits into
masterfrom
resizable-sidebar
Open

sidebar is now resizeable#438
AmeenahRazi wants to merge 2 commits into
masterfrom
resizable-sidebar

Conversation

@AmeenahRazi

Copy link
Copy Markdown
Collaborator

No description provided.

@AmeenahRazi
AmeenahRazi requested a review from Gonza10V July 30, 2026 17:10
@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://witty-hill-08172a210-438.centralus.5.azurestaticapps.net

@Gonza10V

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 727117cc02

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +63 to +64
window.addEventListener('mousemove', handleResizeMove)
window.addEventListener('mouseup', handleResizeEnd)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge End resizing when the browser loses the drag

If the pointer leaves the browser window and the mouse button is released outside it, the registered mouseup handler never runs. This leaves isResizing enabled and the body's cursor and userSelect overrides active, so later mouse movement resizes the sidebar even without a button held. Handle window blur/pointer cancellation or use pointer capture so every drag has a guaranteed cleanup path.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldnt reproduce

@Gonza10V Gonza10V left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good to me, and the review from Codex is not reproducible. In my test the GUI worked as expected.

I would reduce the defaul size because you have to scrool to the right to find the collapse arrow
I would add a blue line when the side is being resized
review if there is a more effiecient wat to resize it

@github-actions

Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://witty-hill-08172a210-438.centralus.5.azurestaticapps.net

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.

2 participants