docs: set max width in assistant (#11231)
* docs: set max width in assistant * allow scrolling while showing answer
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user