[signalapp/Signal-Desktop#7242] Allow collapsing archive sidebar

Co-authored-by: lukas <lukas.walter@aceart.de>
This commit is contained in:
Scott Nonnenberg
2025-04-02 17:54:45 +10:00
committed by GitHub
parent ef4cee63e9
commit f166db97ac
2 changed files with 21 additions and 0 deletions

View File

@@ -207,6 +207,11 @@ export class LeftPaneArchiveHelper extends LeftPaneHelper<LeftPaneArchivePropsTy
);
}
override requiresFullWidth(): boolean {
const hasNoConversations = !this.#archivedConversations.length;
return hasNoConversations;
}
shouldRecomputeRowHeights(old: Readonly<LeftPaneArchivePropsType>): boolean {
const hasSearchingChanged =
'conversationResults' in old !== Boolean(this.#searchHelper);