@copilotz/chat-ui 0.1.37 → 0.1.38

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 CHANGED
@@ -5310,8 +5310,16 @@ var ChatUI = ({
5310
5310
  config?.customComponent?.component && !isMobile && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5311
5311
  "div",
5312
5312
  {
5313
- className: `h-full transition-all duration-300 ease-in-out overflow-hidden ${state.showSidebar ? "w-80" : "w-0"}`,
5314
- children: state.showSidebar && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex flex-col h-full border-l bg-background animate-in slide-in-from-right-4 duration-300 w-80", children: renderCustomComponent() })
5313
+ className: "h-full transition-all duration-300 ease-in-out overflow-hidden",
5314
+ style: { width: state.showSidebar ? config.customComponent.panelWidth ?? 320 : 0 },
5315
+ children: state.showSidebar && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
5316
+ "div",
5317
+ {
5318
+ className: "flex flex-col h-full border-l bg-background animate-in slide-in-from-right-4 duration-300",
5319
+ style: { width: config.customComponent.panelWidth ?? 320 },
5320
+ children: renderCustomComponent()
5321
+ }
5322
+ )
5315
5323
  }
5316
5324
  )
5317
5325
  ] })