mirror of
https://github.com/block/buzz.git
synced 2026-11-26 11:12:22 +00:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user