Create a V0.dev like UI where the chat is on the left side, an IDE-like panel is on the right side and there's a file explorer within the IDE (on the left) with the Monaco Editor on the right of the panel. All of them will be resizeable
I'll create a V0.dev-like interface with a resizable layout featuring a chat panel on the left and an IDE panel on the right with a file explorer and Monaco Editor. Let me build this step by step.
I've created a V0.dev-like interface with the following features:
IDE Panel: Right side split into two parts:
Main Content: Split into resizable panels
The interface mimics the V0.dev experience with a clean, modern design using shadcn/ui components and proper responsive behavior.
The IDE has an issue with resizing i think
You're right! There's an issue with the resizing logic. The problem is that I'm using e.clientX
directly as the width, but it should be calculated relative to the panel's position. Let me fix the resizing functionality:
The key fixes I made:
deltaX
(difference from start position) instead of absolute clientX
startX
and startWidth
to track where the resize beganflexShrink: 0
to prevent panels from shrinking unexpectedlyThe resizing should now work smoothly for both the chat panel and the file explorer within the IDE!