docs: set max width in assistant (#11231)

* docs: set max width in assistant

* allow scrolling while showing answer
This commit is contained in:
Shahed Nasser
2025-01-30 16:25:55 +02:00
committed by GitHub
parent be33a56290
commit 5c85b51d26
3 changed files with 44 additions and 2 deletions
@@ -34,7 +34,7 @@ export const AiAssistantThreadItem = ({ item }: AiAssistantThreadItemProps) => {
"txt-small text-medusa-fg-base",
item.type === "question" && [
"rounded-docs_xl bg-medusa-tag-neutral-bg",
"px-docs_0.75 py-docs_0.5 max-w-full",
"px-docs_0.75 py-docs_0.5 max-w-full md:max-w-[400px]",
],
item.type !== "question" && "flex-1",
item.type === "answer" && "text-pretty flex-1 max-w-[calc(100%-20px)]"
@@ -44,7 +44,7 @@ export const MainNavVersion = () => {
>
<Tooltip html="View the release notes<br/>on GitHub">
<span
className="relative text-compact-small-plus"
className="relative text-compact-small-plus block"
onMouseOut={afterHover}
>
<span className="flex justify-center items-center">