Skip to content

Commit 4d36385

Browse files
committed
fix(web): clear the composer fade when revealing an expanded row
The timeline masks the last 0.75rem above the composer, so revealing a row only to the composer edge left its final line faded out.
1 parent 1737b0b commit 4d36385

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/web/src/components/chat/MessagesTimeline.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@ function timelineListStateFor(identity: string): {
398398
};
399399
}
400400

401+
// Matches the 0.75rem fade above the composer in `timeline-scroll-bottom-fade`.
402+
const TIMELINE_BOTTOM_FADE_HEIGHT = 12;
401403
const TIMELINE_LIST_HEADER = <div className="h-3 sm:h-4" />;
402404
const TIMELINE_LIST_FADE_HEADER = (
403405
<div className="h-[var(--workspace-titlebar-scroll-fade-height)]" />
@@ -725,7 +727,8 @@ const ConversationTimeline = memo(function ConversationTimeline({
725727
rowBottom: bounds.bottom,
726728
viewportTop: viewport.top,
727729
viewportBottom: viewport.bottom,
728-
composerOverlayHeight,
730+
composerOverlayHeight:
731+
composerOverlayHeight > 0 ? composerOverlayHeight + TIMELINE_BOTTOM_FADE_HEIGHT : 0,
729732
anchorOffset: CHAT_TIMELINE_ANCHOR_OFFSET,
730733
});
731734
if (delta > 0) {

0 commit comments

Comments
 (0)