[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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 0 deletions

View file

@ -5767,6 +5767,10 @@ button.module-calling-participants-list__contact {
}
}
}
.NavSidebar--narrow & {
margin-inline-start: 0;
}
}
&__text {
@ -5781,6 +5785,14 @@ button.module-calling-participants-list__contact {
@include mixins.dark-theme {
color: variables.$color-gray-05;
}
.NavSidebar--narrow & {
@include mixins.sr-only;
}
}
.NavSidebar--narrow & {
justify-content: center;
}
}
@ -5861,6 +5873,10 @@ button.module-calling-participants-list__contact {
color: variables.$color-gray-25;
background-color: variables.$color-gray-75;
}
.NavSidebar--narrow & {
display: none;
}
}
.module-left-pane__no-search-results__unread-header {
margin-bottom: 50px;

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);