Explorar el Código

fix: desktop layout

Adam hace 2 meses
padre
commit
a16edb4ea0

+ 1 - 0
packages/ui/src/components/session-turn.css

@@ -30,6 +30,7 @@
   }
 
   [data-slot="session-turn-sticky-header"] {
+    width: 100%;
     position: sticky;
     top: 0;
     background-color: var(--background-stronger);

+ 9 - 0
packages/ui/src/components/session-turn.tsx

@@ -242,6 +242,15 @@ export function SessionTurn(
                 }
               })
 
+              // Auto-collapse steps when done working (if user hasn't interacted)
+              createEffect((prev) => {
+                const isWorking = working()
+                if (prev && !isWorking && !userScrolled()) {
+                  setStore("detailsExpanded", false)
+                }
+                return isWorking
+              }, working())
+
               return (
                 <div
                   data-message={message().id}