Skip to content

Commit 818e4e7

Browse files
mitre88tylerslaton
authored andcommitted
fix(sidebar): allow full-height children inside CopilotSidebar
1 parent 397dfa1 commit 818e4e7

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

packages/react-ui/src/components/chat/Modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const CopilotModalInner = ({
140140

141141
return (
142142
<>
143-
{memoizedChildren}
143+
<div className="copilotKitModalChildrenWrapper">{memoizedChildren}</div>
144144
<div className={className}>
145145
<Button></Button>
146146
<Window

packages/react-ui/src/css/sidebar.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@
2525
overflow: visible;
2626
margin-right: 0px;
2727
transition: margin-right 0.3s ease;
28+
min-height: 100vh;
29+
min-height: 100dvh;
30+
height: 100%;
31+
}
32+
33+
.copilotKitSidebarContentWrapper > .copilotKitModalChildrenWrapper {
34+
min-height: 100%;
35+
height: 100%;
36+
}
37+
38+
.copilotKitSidebarContentWrapper > .copilotKitModalChildrenWrapper > * {
39+
min-height: 100%;
40+
height: 100%;
2841
}
2942

3043
@media (min-width: 640px) {

0 commit comments

Comments
 (0)