From 06aa140fa195e10bf2647a673eee585528b598bc Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Tue, 2 Jun 2026 23:42:38 -0500 Subject: [PATCH] fix(desktop): inset sticky human messages with --sticky-human-top Pin user bubbles 0.75rem below the scroll top via a single token instead of flush top-0, so the sticky header doesn't sit hard against the thread edge. --- apps/desktop/src/components/assistant-ui/thread.tsx | 2 +- apps/desktop/src/styles.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/components/assistant-ui/thread.tsx b/apps/desktop/src/components/assistant-ui/thread.tsx index f802104f5..dbeecd526 100644 --- a/apps/desktop/src/components/assistant-ui/thread.tsx +++ b/apps/desktop/src/components/assistant-ui/thread.tsx @@ -638,7 +638,7 @@ function messageAttachmentRefs(value: unknown): string[] { function StickyHumanMessageContainer({ children }: { children: ReactNode }) { return (
diff --git a/apps/desktop/src/styles.css b/apps/desktop/src/styles.css index 3dd174a52..541d0eefe 100644 --- a/apps/desktop/src/styles.css +++ b/apps/desktop/src/styles.css @@ -272,6 +272,7 @@ --conversation-line-height: 1.125rem; --conversation-caption-line-height: 1rem; --conversation-turn-gap: 0.375rem; + --sticky-human-top: 0.75rem; --file-tree-row-height: 1.375rem; --composer-width: 48.75rem; @@ -704,6 +705,10 @@ canvas { padding-inline-start: var(--md-text-indent, 0.5rem); } +[data-slot='aui_user-message-root'] { + top: var(--sticky-human-top); +} + [data-slot='aui_user-message-root'], [data-slot='aui_edit-composer-root'] { font-size: var(--conversation-text-font-size);