Skip to content

Commit 7826a99

Browse files
fix: constrain chat assistant to 384px on desktop and remove dark background (#224)
## Summary - Constrains the chat assistant floating input to `max-width: 384px` and centers it on desktop (`>=640px`), overriding Mintlify's new full-width default - Removes the dark background behind the chat area by making the sticky container and its `::before` pseudo-elements transparent - Mobile behavior (8px edge-to-edge overflow) is unchanged ## Context Mintlify pushed a platform update that made the chat assistant `w-full` (confirmed on their Palm theme starter). This is not caused by our CSS — we need to override their new default. ## Test plan - [x] Desktop: chat bar is ~384px wide, centered, no dark background behind it - [x] Mobile: chat bar extends 8px past content edges as before - [x] Light and dark mode both look correct Made with [Cursor](https://cursor.com) Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 3bbc31b commit 7826a99

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

mintlify/style.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,16 @@ html.dark .navbar-link svg {
587587
transition: none !important;
588588
}
589589

590+
/* Remove dark background behind chat area (sticky container + pseudo-elements) */
591+
div:has(> .chat-assistant-floating-input) {
592+
background: transparent !important;
593+
}
594+
595+
div:has(> .chat-assistant-floating-input)::before,
596+
.chat-assistant-floating-input > div::before {
597+
background: transparent !important;
598+
}
599+
590600
/* Mobile assistant bar placeholder - make transparent so it doesn't cover content */
591601
#assistant-bar-placeholder {
592602
background: transparent !important;
@@ -605,6 +615,14 @@ html.dark .navbar-link svg {
605615
}
606616
}
607617

618+
/* Desktop: constrain chat bar to 384px and center */
619+
@media (min-width: 640px) {
620+
.chat-assistant-floating-input {
621+
max-width: 384px !important;
622+
margin: 0 auto !important;
623+
}
624+
}
625+
608626
/* Container wrapper - glassy blur effect */
609627
.chat-assistant-floating-input > div > div {
610628
background: var(--ls-white-70) !important;

0 commit comments

Comments
 (0)