docs: fix overflowing content on small devices (#11219)
This commit is contained in:
1 parent
5634a4762b
commit
e0bd2a79b0
2 files changed
+3
-6
No files matched your search
@@ -152,7 +152,8 @@ export const AiAssistantChatWindow = () => {
|
|||||||
"shadow-elevation-modal dark:shadow-elevation-modal-dark",
|
"shadow-elevation-modal dark:shadow-elevation-modal-dark",
|
||||||
"bg-medusa-bg-base rounded-docs_DEFAULT overflow-x-hidden",
|
"bg-medusa-bg-base rounded-docs_DEFAULT overflow-x-hidden",
|
||||||
"flex-col justify-between m-docs_0.25 max-w-ai-assistant",
|
"flex-col justify-between m-docs_0.25 max-w-ai-assistant",
|
||||||
chatOpened && ["!right-0"]
|
chatOpened && ["!right-0"],
|
||||||
|
!chatOpened && ["!fixed"]
|
||||||
)}
|
)}
|
||||||
style={{
|
style={{
|
||||||
height,
|
height,
|
||||||
|
|||||||
@@ -24,11 +24,7 @@ export const LayoutProvider = ({
|
|||||||
const [showCollapsedNavbar, setShowCollapsedNavbar] = useState(false)
|
const [showCollapsedNavbar, setShowCollapsedNavbar] = useState(false)
|
||||||
|
|
||||||
useResizeObserver(mainContentRef as React.RefObject<HTMLDivElement>, () => {
|
useResizeObserver(mainContentRef as React.RefObject<HTMLDivElement>, () => {
|
||||||
if (disableResizeObserver) {
|
if (disableResizeObserver || window.innerWidth < 992) {
|
||||||
setShowCollapsedNavbar(false)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (window.innerWidth < 992) {
|
|
||||||
setShowCollapsedNavbar(false)
|
setShowCollapsedNavbar(false)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user