Skip to content

Commit 2044ad7

Browse files
wesbillmanBrain
andauthored
fix(desktop): stop clipping the agent-activity row under the composer (#1371)
Signed-off-by: Wes <[email protected]> Co-authored-by: Brain <21994759fc7a6fa6b965551d35cfd7897d262f2495467f2d78694ddcfa6a5c7e@sprout-oss.stage.blox.sqprod.co>
1 parent 9b711f4 commit 2044ad7

3 files changed

Lines changed: 17 additions & 7 deletions

File tree

‎desktop/src/features/channels/ui/BotActivityBar.tsx‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,16 @@ export function BotActivityComposerAction({
197197
+{typingAgents.length - 2}
198198
</span>
199199
) : null}
200-
<span className={cn(isInline ? "max-w-40 truncate" : "sr-only")}>
201-
{isInline ? <Shimmer>{visibleStatusLabel}</Shimmer> : "working"}
200+
<span
201+
className={cn(
202+
isInline ? "min-w-0 flex-1 overflow-hidden" : "sr-only",
203+
)}
204+
>
205+
{isInline ? (
206+
<Shimmer className="block truncate">{visibleStatusLabel}</Shimmer>
207+
) : (
208+
"working"
209+
)}
202210
</span>
203211
{isInline ? null : (
204212
<Loader2 className="h-4 w-4 shrink-0 animate-spin opacity-70" />

‎desktop/src/features/channels/ui/ChannelPane.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,10 +686,10 @@ export const ChannelPane = React.memo(function ChannelPane({
686686
}
687687
showTopBorder={false}
688688
/>
689-
<div className="h-7 overflow-visible bg-background px-5 pb-1 pt-0">
689+
<div className="min-h-8 overflow-visible bg-background px-5 pb-1.5 pt-0">
690690
<div className="flex h-full w-full items-center gap-2 overflow-visible">
691691
{hasComposerBotActivity ? (
692-
<div className="shrink-0 overflow-visible">
692+
<div className="flex min-w-0 flex-1 overflow-visible">
693693
<BotActivityComposerAction
694694
agents={activityAgents}
695695
channelId={activeChannel?.id ?? null}

‎desktop/src/features/messages/ui/MessageThreadPanel.tsx‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,13 +833,15 @@ export function MessageThreadPanel({
833833
/>
834834
<div
835835
className={cn(
836-
"h-7 bg-background pb-1 pt-0",
836+
"min-h-8 bg-background pb-1.5 pt-0",
837837
THREAD_PANEL_COMPOSER_GUTTER_CLASS,
838838
)}
839839
>
840-
<div className="mx-auto flex h-full w-full max-w-4xl items-center gap-2">
840+
<div className="mx-auto flex h-full w-full max-w-4xl items-center gap-2 overflow-visible">
841841
{toolbarExtraActions ? (
842-
<div className="shrink-0">{toolbarExtraActions}</div>
842+
<div className="flex min-w-0 flex-1 overflow-visible">
843+
{toolbarExtraActions}
844+
</div>
843845
) : null}
844846
{threadTypingPubkeys.length > 0 ? (
845847
<TypingIndicatorRow

0 commit comments

Comments
 (0)