marwanhawari/LeetRooms

Make side panel resizable

Closed this issue · 3 comments

The right side panel for LeetRooms is currently a static width. Users should be able to resize like they resize the left side panel. This will involve making changes to the content.ts script rather than the React app. Ideally, it should look close in style and feel to the resizable element that already exists on the left side panel.

This PR allows users to resize from the popup HTML:

It works, but it isn't the best UX. I would still like to allow users to drag to resize to match the existing LeetCode UI.

Hi, I started working on this today. I was able to get most of the logic down. I'll clean up the code a bit and submit a PR soon.

This is what the current implementation looks like. Let me know if this works and if you would like me to add anything else.

Resize

I ended up merging my branch. Thanks for the contribution though.