2
0
satof3 6 сар өмнө
parent
commit
377dcd66fd

+ 0 - 3
apps/app/src/features/openai/client/components/AiAssistant/AiAssistantSidebar/AiAssistantSidebar.module.scss

@@ -19,10 +19,7 @@
   }
 
   .thread-title-sticky {
-    position: sticky;
-    top: 0;
     z-index: 10;
-    padding: 0.5rem 0;
     background-color: rgba(var(--bs-body-bg-rgb), 0.75);
     -webkit-backdrop-filter: blur(10px);
     backdrop-filter: blur(10px);

+ 2 - 2
apps/app/src/features/openai/client/components/AiAssistant/AiAssistantSidebar/AiAssistantSidebar.tsx

@@ -439,7 +439,7 @@ const AiAssistantSidebarSubstance: React.FC<AiAssistantSidebarSubstanceProps> =
             autoHide
           >
             {!isEditorAssistant && threadData?.title && (
-              <div className="thread-title-sticky pt-2 px-3">
+              <div className="thread-title-sticky position-sticky top-0 py-2 px-3">
                 <div className="d-flex align-items-center gap-2">
                   <button
                     type="button"
@@ -494,7 +494,7 @@ const AiAssistantSidebarSubstance: React.FC<AiAssistantSidebarSubstanceProps> =
           </SimpleBar>
         </div>
 
-        <div className="position-sticky bottom-0 bg-body z-2 p-3 border-top">
+        <div className="position-sticky bottom-0 bg-body z-2 p-3">
           <form onSubmit={form.handleSubmit(submit)} className="flex-fill vstack gap-1">
             <Controller
               name="input"