@ottocode/web-sdk 0.1.312 → 0.1.313

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.
@@ -24678,6 +24678,7 @@ var MessageThread = memo25(function MessageThread2({
24678
24678
  sessionId,
24679
24679
  isGenerating,
24680
24680
  compact = false,
24681
+ responsiveCompact = true,
24681
24682
  disableAutoScroll = false,
24682
24683
  onSelectSession,
24683
24684
  footerBottomPaddingClass: footerBottomPaddingClassOverride
@@ -24689,7 +24690,7 @@ var MessageThread = memo25(function MessageThread2({
24689
24690
  const sessionHeaderRef = useRef23(null);
24690
24691
  const threadRootRef = useRef23(null);
24691
24692
  const threadWidth = useContainerWidth(threadRootRef);
24692
- const density = threadWidth > 0 && threadWidth < 640 ? "compact" : "normal";
24693
+ const density = compact || responsiveCompact && threadWidth > 0 && threadWidth < 640 ? "compact" : "normal";
24693
24694
  const [autoScroll, setAutoScroll] = useState44(true);
24694
24695
  const [isThreadScrolling, setIsThreadScrolling] = useState44(false);
24695
24696
  const autoScrollRef = useRef23(true);
@@ -25967,6 +25968,7 @@ var MessageThreadData = memo28(function MessageThreadData2({
25967
25968
  session,
25968
25969
  isGenerating,
25969
25970
  compact: isOttoThread || preferences.compactThread,
25971
+ responsiveCompact: preferences.compactThread,
25970
25972
  onSelectSession,
25971
25973
  footerBottomPaddingClass
25972
25974
  });
@@ -44981,4 +44983,4 @@ export {
44981
44983
  AgentProviderModelFields
44982
44984
  };
44983
44985
 
44984
- //# debugId=4F518AFA5E675B1164756E2164756E21
44986
+ //# debugId=B662143DFDACA04964756E2164756E21