Skip to content

Commit 86a1753

Browse files
fix(docs): mobile styling issues (CopilotKit#519)
* fix(docs): rendering of genreative ui examples on mobile * fix(docs): render menu icons only in menu * fix(docs): word wrap button transparent on mobile
1 parent abde2bc commit 86a1753

2 files changed

Lines changed: 23 additions & 11 deletions

File tree

docs/globals.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ li:has(.icon-container) > div > div > ul ul {
6868
@apply ml-2 px-2 before:w-[1px];
6969
}
7070

71-
.nextra-breadcrumb .icon-container .icon {
71+
.icon-container .icon {
7272
@apply hidden;
73+
}
74+
75+
.nextra-sidebar-container .icon-container .icon {
76+
@apply flex !important;
77+
}
78+
79+
.nextra-code button[title="Toggle word wrap"] {
80+
background: var(--nextra-bg);
7381
}

docs/pages/concepts/generative-ui.mdx

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@ import { Frame } from "../../components";
44

55
The Generative UI feature allows you to dynamically render React components in the copilot chat window. The components will be updated in real-time as the arguments are streamed.
66

7-
<Frame>
8-
<img
9-
src="/images/concepts/generative-ui/render-generative-spreadsheet.gif"
10-
className="w-auto"
11-
/>
12-
<img
13-
src="/images/concepts/generative-ui/render-generative-presentation.gif"
14-
className="w-auto"
15-
/>
16-
</Frame>
7+
<div className="flex flex-col md:flex-row gap-0">
8+
<Frame>
9+
<img
10+
src="/images/concepts/generative-ui/render-generative-spreadsheet.gif"
11+
className="w-auto"
12+
/>
13+
</Frame>
14+
<Frame>
15+
<img
16+
src="/images/concepts/generative-ui/render-generative-presentation.gif"
17+
className="w-auto"
18+
/>
19+
</Frame>
20+
</div>
1721

1822
## Rendering a UI Component
1923

0 commit comments

Comments
 (0)