@algenium/blocks 1.2.1-rc.1 → 1.2.1-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6825,7 +6825,7 @@ function ChatSidebar({
|
|
|
6825
6825
|
} = useChatSidebar();
|
|
6826
6826
|
React2.useEffect(() => {
|
|
6827
6827
|
if (!isOpen || typeof window === "undefined") return;
|
|
6828
|
-
const mq = window.matchMedia("(max-width:
|
|
6828
|
+
const mq = window.matchMedia("(max-width: 767px)");
|
|
6829
6829
|
const apply = () => {
|
|
6830
6830
|
if (mq.matches) document.body.style.overflow = "hidden";
|
|
6831
6831
|
else document.body.style.overflow = "";
|
|
@@ -6853,7 +6853,7 @@ function ChatSidebar({
|
|
|
6853
6853
|
className: cn(
|
|
6854
6854
|
"flex min-h-0 flex-col bg-background",
|
|
6855
6855
|
"fixed top-[var(--sidebar-top)] right-0 bottom-0 left-0 z-[100] w-full max-w-none border-0 shadow-none",
|
|
6856
|
-
"
|
|
6856
|
+
"md:relative md:inset-auto md:z-auto md:h-full md:w-[360px] md:max-w-[360px] md:shrink-0 md:border-l md:shadow-none xl:w-[400px] xl:max-w-[400px]",
|
|
6857
6857
|
className
|
|
6858
6858
|
),
|
|
6859
6859
|
children: view === "list" ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -6953,7 +6953,7 @@ function ChatSidebar({
|
|
|
6953
6953
|
"div",
|
|
6954
6954
|
{
|
|
6955
6955
|
style: cssVars,
|
|
6956
|
-
className: "fixed top-[var(--sidebar-top)] right-0 bottom-0 left-0 z-[90] bg-black/50
|
|
6956
|
+
className: "fixed top-[var(--sidebar-top)] right-0 bottom-0 left-0 z-[90] bg-black/50 md:hidden",
|
|
6957
6957
|
"aria-hidden": true,
|
|
6958
6958
|
onClick: close
|
|
6959
6959
|
}
|