Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(calls): scrolling on calls (#3559)

teoe5910224be49
diff --git a/js/app/packages/block-call/component/CallBlockAdapter.tsx b/js/app/packages/block-call/component/CallBlockAdapter.tsx
index 83147da1b4..5c9cebe8ed 100644
--- a/js/app/packages/block-call/component/CallBlockAdapter.tsx
+++ b/js/app/packages/block-call/component/CallBlockAdapter.tsx
@@ -68,10 +68,12 @@ export function CallBlockAdapter(props: CallBlockProps) {
{(data) => (
<SidePanel.Layout>
<CallSidePanelSections record={data} />
- <CallRecordingBody
- data={data}
- transcriptTarget={transcriptTarget}
- />
+ <div class="flex size-full min-h-0 min-w-0 flex-col overflow-hidden @container">
+ <CallRecordingBody
+ data={data}
+ transcriptTarget={transcriptTarget}
+ />
+ </div>
</SidePanel.Layout>
)}
</Match>
diff --git a/js/app/packages/block-call/component/CallRecording/CallRecordingBody.tsx b/js/app/packages/block-call/component/CallRecording/CallRecordingBody.tsx
index b1a45ea658..9b213879eb 100644
--- a/js/app/packages/block-call/component/CallRecording/CallRecordingBody.tsx
+++ b/js/app/packages/block-call/component/CallRecording/CallRecordingBody.tsx
@@ -133,69 +133,71 @@ export function CallRecordingBody(props: {
return (
<>
<CallRecordingSplitHeader record={record} />
- <div
- class="relative flex-1 min-h-0 overflow-y-auto scrollbar-hidden"
- ref={setScrollRef}
- >
- <div class="mx-auto max-w-3xl min-w-0 px-6 pt-10 pb-16">
- <div class="flex flex-col gap-10">
- <header>
- <h1 class="text-2xl font-semibold text-ink text-balance">
- {callTitle()}
- </h1>
- <div class="mt-3 flex flex-wrap items-center gap-x-2 text-sm text-ink-muted">
- <Show when={formattedDate()}>
- {(date) => <span>{date()}</span>}
- </Show>
- <Show when={formattedDuration()}>
- {(dur) => (
- <>
- <span class="text-ink-extra-muted">&middot;</span>
- <span>{dur()}</span>
- </>
- )}
- </Show>
- <Show when={record().isActive}>
- <span class="text-success font-medium">In progress</span>
- </Show>
- </div>
- </header>
-
- <CallRecordingParticipantsSection record={record} />
-
- <CallRecordingSummarySection record={record} />
-
- <Show when={record().recordingUrl}>
- {(url) => (
+ <div class="relative flex-1 min-h-0 overflow-hidden">
+ <div
+ class="h-full min-h-0 overflow-y-auto scrollbar-hidden"
+ ref={setScrollRef}
+ >
+ <div class="mx-auto max-w-3xl min-w-0 px-6 pt-10 pb-16">
+ <div class="flex flex-col gap-10">
+ <header>
+ <h1 class="text-2xl font-semibold text-ink text-balance">
+ {callTitle()}
+ </h1>
+ <div class="mt-3 flex flex-wrap items-center gap-x-2 text-sm text-ink-muted">
+ <Show when={formattedDate()}>
+ {(date) => <span>{date()}</span>}
+ </Show>
+ <Show when={formattedDuration()}>
+ {(dur) => (
+ <>
+ <span class="text-ink-extra-muted">&middot;</span>
+ <span>{dur()}</span>
+ </>
+ )}
+ </Show>
+ <Show when={record().isActive}>
+ <span class="text-success font-medium">In progress</span>
+ </Show>
+ </div>
+ </header>
+
+ <CallRecordingParticipantsSection record={record} />
+
+ <CallRecordingSummarySection record={record} />
+
+ <Show when={record().recordingUrl}>
+ {(url) => (
+ <section class="flex flex-col gap-3">
+ <h3 class="text-sm font-semibold text-ink">Recording</h3>
+ <div class="overflow-hidden rounded border border-edge-muted/50">
+ <CallRecordingVideo
+ url={url()}
+ onTimeUpdate={handleTimeUpdate}
+ setVideoRef={setVideoRef}
+ />
+ </div>
+ </section>
+ )}
+ </Show>
+
+ <Show when={hasTranscripts()}>
<section class="flex flex-col gap-3">
- <h3 class="text-sm font-semibold text-ink">Recording</h3>
- <div class="overflow-hidden rounded border border-edge-muted/50">
- <CallRecordingVideo
- url={url()}
- onTimeUpdate={handleTimeUpdate}
- setVideoRef={setVideoRef}
+ <h3 class="text-sm font-semibold text-ink">Transcript</h3>
+ <div class="flex flex-col max-h-[min(600px,60vh)] overflow-hidden rounded border border-edge-muted/50">
+ <CallTranscript
+ transcript={record().transcript}
+ channelId={record().channelId}
+ timelineStartMs={timelineStartMs()}
+ activeSequenceNum={activeSequenceNum()}
+ videoSeekGeneration={videoSeekGeneration()}
+ onSeekToSeconds={seekToSeconds}
+ hideHeader
/>
</div>
</section>
- )}
- </Show>
-
- <Show when={hasTranscripts()}>
- <section class="flex flex-col gap-3">
- <h3 class="text-sm font-semibold text-ink">Transcript</h3>
- <div class="flex flex-col max-h-[min(600px,60vh)] overflow-hidden rounded border border-edge-muted/50">
- <CallTranscript
- transcript={record().transcript}
- channelId={record().channelId}
- timelineStartMs={timelineStartMs()}
- activeSequenceNum={activeSequenceNum()}
- videoSeekGeneration={videoSeekGeneration()}
- onSeekToSeconds={seekToSeconds}
- hideHeader
- />
- </div>
- </section>
- </Show>
+ </Show>
+ </div>
</div>
</div>
<CustomScrollbar scrollContainer={scrollRef} />
diff --git a/js/app/packages/block-call/component/CallTranscript.tsx b/js/app/packages/block-call/component/CallTranscript.tsx
index 5c4efbdbc7..7ef6d1c440 100644
--- a/js/app/packages/block-call/component/CallTranscript.tsx
+++ b/js/app/packages/block-call/component/CallTranscript.tsx
@@ -365,7 +365,7 @@ export function CallTranscript(props: {
return (
<div class="relative flex h-full min-h-0 flex-col overflow-hidden">
- <div class="relative flex flex-1 min-h-0 flex-col">
+ <div class="relative flex flex-1 min-h-0 flex-col overflow-hidden">
<div
ref={setScrollRef}
class="h-full min-h-0 flex-1 overflow-y-auto scrollbar-hidden"
@@ -423,6 +423,7 @@ export function CallTranscript(props: {
</For>
</div>
</div>
+ <CustomScrollbar scrollContainer={scrollRef} />
</div>
<Show
when={
@@ -452,7 +453,6 @@ export function CallTranscript(props: {
</button>
</div>
</Show>
- <CustomScrollbar scrollContainer={scrollRef} />
</div>
);
}