mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
3626bf1c53
The toggle button is hardcoded right-anchored (cpk:bottom-6 cpk:right-6). When the sidebar sits on the left, the button should mirror to the left so it lives behind/under the chat panel — otherwise it floats on the opposite side from the sidebar it controls. CopilotSidebarView now passes a position-aware className override into the toggle slot (left-6 + right-auto, merged via tailwind-merge so the default right-6 is dropped). Behavior on the right is unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>