-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: Resizable component cursor issue #6500
Comments
hey @iltan987 I checked that, and I think that's perfect and working correctly. I use this code to make this import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from "@/components/ui/resizable"
export default function Home() {
return (
<div className="w-full h-screen flex justify-center items-center">
<ResizablePanelGroup direction="horizontal">
<ResizablePanel>
<ResizablePanelGroup direction="vertical">
<ResizablePanel className="flex size-full text-xl justify-center items-center">
One
</ResizablePanel>
<ResizableHandle />
<ResizablePanel className="flex size-full text-xl justify-center items-center">
Two
</ResizablePanel>
</ResizablePanelGroup>
</ResizablePanel>
<ResizableHandle />
<ResizablePanel>
<ResizablePanelGroup direction="vertical">
<ResizablePanel className="flex size-full text-xl justify-center items-center">
Three
</ResizablePanel>
<ResizableHandle />
<ResizablePanel className="flex size-full text-xl justify-center items-center">
Four
</ResizablePanel>
</ResizablePanelGroup>
</ResizablePanel>
</ResizablePanelGroup>
</div>
);
} can you provide the code that you are using for that |
Hello @Code-Parth import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from "@/components/ui/resizable"
export function ResizableDemo() {
return (
<ResizablePanelGroup
direction="horizontal"
className="max-w-md rounded-lg border md:min-w-[450px]"
>
<ResizablePanel defaultSize={50}>
<div className="flex h-[200px] items-center justify-center p-6">
<span className="font-semibold">One</span>
</div>
</ResizablePanel>
<ResizableHandle />
<ResizablePanel defaultSize={50}>
<ResizablePanelGroup direction="vertical">
<ResizablePanel defaultSize={25}>
<div className="flex h-full items-center justify-center p-6">
<span className="font-semibold">Two</span>
</div>
</ResizablePanel>
<ResizableHandle />
<ResizablePanel defaultSize={75}>
<div className="flex h-full items-center justify-center p-6">
<span className="font-semibold">Three</span>
</div>
</ResizablePanel>
</ResizablePanelGroup>
</ResizablePanel>
</ResizablePanelGroup>
)
} |
Yes, I saw that first when I tried but; that is working correctly on the localhost |
thanks ser 🤝🏻 |
you can show the fix that was the dependencies issue of react-resizable-panels |
Describe the bug
Have a Resizable component having both vertical and horizontal sides. Resize vertically or horizontally. Then, move your cursor to opposite side (if you resized vertically, hover your mouse to horizontal resize line or vice-versa). Cursor will show previous cursor until you click it.
I used Shadcn official docs
Affected component/components
Resizable
How to reproduce
Codesandbox/StackBlitz link
https://ui.shadcn.com/docs/components/resizable
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: