@docyrus/ui-pro-ai-assistant 0.3.1 → 0.3.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.js CHANGED
@@ -24553,6 +24553,7 @@ function ThreadHeaderInline({
24553
24553
  onMoveToProject,
24554
24554
  onProjectContextClick,
24555
24555
  isFullscreen = false,
24556
+ isSidebarOpen = true,
24556
24557
  t
24557
24558
  }) {
24558
24559
  const dropdownZClass = isFullscreen ? "z-[10000]" : "";
@@ -24572,7 +24573,7 @@ function ThreadHeaderInline({
24572
24573
  setEditValue(null);
24573
24574
  }
24574
24575
  };
24575
- return /* @__PURE__ */ jsxs("div", { className: "flex-none h-10 flex bg-background items-center justify-between border-b border-x border-border px-3 mx-3 rounded-b-md shrink-0", children: [
24576
+ return /* @__PURE__ */ jsxs("div", { className: cn("flex-none h-10 flex bg-background items-center justify-between border-b border-x border-border px-3 mx-3 rounded-b-md shrink-0", !isSidebarOpen && "ml-12"), children: [
24576
24577
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 min-w-0 flex-1", children: [
24577
24578
  projectContext?.id && onProjectContextClick && /* @__PURE__ */ jsx(
24578
24579
  Button,
@@ -25281,6 +25282,7 @@ var DocyAssistant = ({
25281
25282
  projects: projectState.projects,
25282
25283
  projectContext: projectState.projectContext,
25283
25284
  isFullscreen: opts.isFullscreen,
25285
+ isSidebarOpen: uiState.isSidebarOpen,
25284
25286
  onSaveTitle: async (newTitle) => {
25285
25287
  await updateSession(
25286
25288
  apiClient,