fix(desktop): collapse mark-read/unread menu into one toggling item (#1188)

Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
Co-authored-by: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
Will Pfleger
2026-06-22 23:24:58 -04:00
committed by GitHub
parent 28db41dfd3
commit ce994df74e
10 changed files with 159 additions and 22 deletions

View File

@@ -89,6 +89,7 @@ type MessageThreadPanelProps = {
toolbarExtraActions?: React.ReactNode;
widthPx: number;
isFollowingThread?: boolean;
isMessageUnreadById?: (messageId: string) => boolean;
onFollowThread?: () => void;
onUnfollowThread?: () => void;
};
@@ -348,6 +349,7 @@ export function MessageThreadPanel({
isSending,
isSinglePanelView = false,
isFollowingThread,
isMessageUnreadById,
onCancelEdit,
onCancelReply,
onClose,
@@ -644,6 +646,7 @@ export function MessageThreadPanel({
highlightedBranch?.id === threadHead.id
}
isFollowingThread={isFollowingThread}
isUnread={isMessageUnreadById?.(threadHead.id)}
layoutVariant="thread-reply"
message={threadHead}
onCollapseDescendants={
@@ -764,6 +767,7 @@ export function MessageThreadPanel({
}
highlightThreadLineDepths={highlightedLineDepths}
hoverBackground={!entry.summary}
isUnread={isMessageUnreadById?.(entry.message.id)}
layoutVariant="thread-reply"
message={entry.message}
onCollapseDepthGuide={handleCollapseDepthGuide}