Files
buzz/desktop/src/features/messages/ui/TimelineRowShell.tsx
klopez4212 a5bf3c5ae1 Refine desktop timeline activity presentation (#4582)
## Summary

- Make channel join/leave activity use the selected inline avatar-stack
treatment.
- Group related membership activity for one hour and preserve
profile/overflow-name interactions.
- Restore the virtualized day-divider handoff and align the sticky date
behavior with the message timeline.

## Validation

- `pnpm check`
- `pnpm test`
- `cargo test --manifest-path desktop/src-tauri/Cargo.toml`
- Visual desktop screenshot captured with seeded membership activity

---------

Signed-off-by: kenny lopez <klopez4212@gmail.com>
2026-08-04 07:11:16 -07:00

28 lines
714 B
TypeScript

import type * as React from "react";
import { timelineRowReserveStyle } from "@/features/messages/lib/rowHeightEstimate";
import {
getTimelineItemKey,
type TimelineNonDayItem,
} from "@/features/messages/lib/timelineItems";
import { cn } from "@/shared/lib/cn";
export function TimelineRowShell({
children,
item,
useContentVisibility = true,
}: {
children: React.ReactNode;
item: TimelineNonDayItem;
useContentVisibility?: boolean;
}) {
return (
<div
className={cn(useContentVisibility && "timeline-row-cv")}
data-timeline-item-key={getTimelineItemKey(item)}
style={useContentVisibility ? timelineRowReserveStyle(item) : undefined}
>
{children}
</div>
);
}