Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(meetings): constrain summary text selection (#6644)

Louis Beaumont14468f42df03
diff --git a/apps/screenpipe-app-tauri/components/meeting-notes/meeting-workspace.test.tsx b/apps/screenpipe-app-tauri/components/meeting-notes/meeting-workspace.test.tsx
index 49342f7e8..8def61ddf 100644
--- a/apps/screenpipe-app-tauri/components/meeting-notes/meeting-workspace.test.tsx
+++ b/apps/screenpipe-app-tauri/components/meeting-notes/meeting-workspace.test.tsx
@@ -216,9 +216,13 @@ describe("meeting summary surface", () => {
expect(screen.getByTestId("meeting-summary-reading-column")).toHaveClass(
"select-text",
);
- // The shell, not the reading column, bounds the selectable width now.
- // Selection must still have a width-limited container to paint inside so
- // it never renders as a full-window horizontal band.
+ const summaryProse = screen
+ .getByTestId("meeting-summary-reading-column")
+ .querySelector(".prose");
+ expect(summaryProse).toHaveClass("flex", "flex-col", "items-start");
+ // The shell bounds the overall reading width while the flex prose root
+ // shrink-wraps each text block. Both are required to keep selection paint
+ // from becoming a full-window horizontal band.
expect(
screen
.getByTestId("meeting-summary-reading-column")
diff --git a/apps/screenpipe-app-tauri/components/meeting-notes/meeting-workspace.tsx b/apps/screenpipe-app-tauri/components/meeting-notes/meeting-workspace.tsx
index ff35583d6..faddf7aea 100644
--- a/apps/screenpipe-app-tauri/components/meeting-notes/meeting-workspace.tsx
+++ b/apps/screenpipe-app-tauri/components/meeting-notes/meeting-workspace.tsx
@@ -382,7 +382,7 @@ export function MeetingSummarySurface({
>
{summary ? (
<div aria-busy={isStreaming}>
- <MemoizedReactMarkdown className="prose prose-sm max-w-none break-words text-foreground dark:prose-invert prose-headings:font-mono prose-headings:text-xs prose-headings:uppercase prose-headings:tracking-[0.12em] prose-p:leading-7 prose-li:leading-7 [&>*:first-child]:mt-0">
+ <MemoizedReactMarkdown className="prose prose-sm max-w-none flex flex-col items-start break-words text-foreground dark:prose-invert prose-headings:font-mono prose-headings:text-xs prose-headings:uppercase prose-headings:tracking-[0.12em] prose-p:leading-7 prose-li:leading-7 [&>*:first-child]:mt-0">
{summary}
</MemoizedReactMarkdown>
{isStreaming && (
diff --git a/docs/pr-assets/meeting-summary-selection/after.png b/docs/pr-assets/meeting-summary-selection/after.png
new file mode 100644
index 000000000..5a5504999
Binary files /dev/null and b/docs/pr-assets/meeting-summary-selection/after.png differ