-
Notifications
You must be signed in to change notification settings - Fork 704
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
CopilotKit integration causes main app content to disappear or render incorrectly #273
Comments
I've run into this too, it appears that the sidebar puts everything in a wrapper div that you have no control over the classname / styling for (without dropping into CSS and using the classname it is hardcoded to use). The wrapper completely disrupts our flex box layout and so everything either ends up too short, or there's a huge area of whitespace where the sidebar seems to be reserving space for the expanded state even when it's collapsed. Additionally if you render it as standalone, it expands and contracts as expected, and that works great, however the z-index sits above everything else, so things like popovers disappear behind it. |
Thanks for the reply, very insightful.
…On Thu, Apr 11, 2024 at 12:25 PM Clint Pearson ***@***.***> wrote:
I've run into this too, it appears that the sidebar puts everything in a
wrapper div that you have no control over the classname / styling for
(without dropping into CSS and using the classname it is hardcoded to use).
The wrapper completely disrupts our flex box layout and so everything
either ends up too short, or there's a huge area of whitespace where the
sidebar seems to be reserving space for the expanded state even when it's
collapsed.
Additionally if you render it as standalone, it expands and contracts as
expected, and that works great, however the z-index sits above everything
else, so things like popovers disappear behind it.
—
Reply to this email directly, view it on GitHub
<#273 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJZITXXFHC2HLYZCP6MYZ5TY422RFAVCNFSM6AAAAABEZRY4XSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJQGA3DSMJVGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
DERRICK S. HODGE
President & CEO
Connecting People
to Digital Intelligence
www.hodgeluke.com
Hodge Luke
315 E. Long St. Suite 104
Columbus, OH 43215
Cell: +1 (380) 245-0972
Email Confidentiality Notice
This message (including any attachments) is confidential. It may also be
privileged or otherwise protected by work-product immunity or other legal
rules. If you have received it by mistake, please delete it from your
system; you may not copy or disclose its contents to anyone. If you
received this communication in error, please notify us by telephone at 380
245 0972 or by email at ***@***.*** Please promptly destroy the
original transmission.
|
Thanks so much for this bug report and the deep-dive @ckpearson - by " if you render it as standalone" -do you mean when using |
@ataibarkai I mean not wrapping children with it, so: <App>
<LeftPanel />
<RightPanel />
<CopilotSidebar />
</App> Instead of: <App>
<CopilotSidebar>
<LeftPanel />
<RightPanel />
</CopilotSidebar>
</App> We've actually just gone with using the popup instead. I know there's a headless variant by using the |
Bug Report
Description
When wrapping the main application layout with the
CopilotKitProvider
component from the CopilotKit library, the application's content disappears or renders incorrectly depending on whetherCopilotSidebar
orCopilotPopup
is used.Steps to Reproduce
layout.tsx
).CopilotKitProvider
component from the CopilotKit library.CopilotSidebar
orCopilotPopup
inside theCopilotKitProvider
.Code Snippets
layout.tsx
copilotkit-provider.tsx
Expected Behavior
The application layout and content should render correctly, with the CopilotSidebar or CopilotPopup component appearing alongside the main application content.
Actual Behavior
When using CopilotSidebar, the main application's left dashboard or sidebar content disappears completely.
When using CopilotPopup, everything except the chat popup disappears from the application.
Environment
Next.js version: Next.js v14.1.3
CopilotKit version: v0.20.1
Operating System: MacOS Monterey v12.7.4
Browser: Google Chrome
The text was updated successfully, but these errors were encountered: