Skip to content

Commit 3876f70

Browse files
authored
Edgeless Assistant window on depth: flat sites (#3788)
1 parent b4a021a commit 3876f70

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/silver-nails-flow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": patch
3+
---
4+
5+
Edgeless Assistant window on `depth: flat` sites

packages/gitbook/src/components/AIChat/AIChat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ export function AIChat(props: { trademark: boolean }) {
7070
<div
7171
data-testid="ai-chat"
7272
className={tcls(
73-
'ai-chat inset-y-0 right-0 z-40 mx-auto flex max-w-3xl scroll-mt-36 px-4 py-4 transition-[width,opacity,margin,display] transition-discrete duration-300 sm:px-6 lg:fixed lg:w-80 lg:pr-4 lg:pl-0 xl:w-96',
73+
'ai-chat inset-y-0 right-0 z-40 mx-auto flex max-w-3xl scroll-mt-36 px-4 py-4 transition-[width,opacity,margin,display] transition-discrete duration-300 sm:px-6 lg:fixed lg:w-80 depth-flat:lg:p-0 lg:pr-4 lg:pl-0 xl:w-96',
7474
chat.opened
7575
? 'lg:starting:ml-0 lg:starting:w-0 lg:starting:opacity-0'
7676
: 'hidden lg:ml-0 lg:w-0! lg:opacity-0'
7777
)}
7878
>
79-
<EmbeddableFrame className="relative shrink-0 circular-corners:rounded-3xl rounded-corners:rounded-md border border-tint-subtle depth-subtle:shadow-lg shadow-tint transition-all duration-300 lg:w-76 xl:w-92">
79+
<EmbeddableFrame className="relative shrink-0 circular-corners:rounded-3xl rounded-corners:rounded-md border border-tint-subtle depth-subtle:shadow-lg shadow-tint transition-all duration-300 lg:w-76 depth-flat:lg:rounded-none depth-flat:lg:border-y-0 depth-flat:lg:border-r-0 xl:w-92">
8080
<EmbeddableFrameHeader>
8181
<AIChatDynamicIcon trademark={trademark} />
8282
<EmbeddableFrameHeaderMain>

0 commit comments

Comments
 (0)