[signalapp/Signal-Desktop#7242] Allow collapsing archive sidebar
Co-authored-by: lukas <lukas.walter@aceart.de>
This commit is contained in:
parent
ef4cee63e9
commit
f166db97ac
2 changed files with 21 additions and 0 deletions
|
@ -5767,6 +5767,10 @@ button.module-calling-participants-list__contact {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.NavSidebar--narrow & {
|
||||||
|
margin-inline-start: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__text {
|
&__text {
|
||||||
|
@ -5781,6 +5785,14 @@ button.module-calling-participants-list__contact {
|
||||||
@include mixins.dark-theme {
|
@include mixins.dark-theme {
|
||||||
color: variables.$color-gray-05;
|
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;
|
color: variables.$color-gray-25;
|
||||||
background-color: variables.$color-gray-75;
|
background-color: variables.$color-gray-75;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.NavSidebar--narrow & {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.module-left-pane__no-search-results__unread-header {
|
.module-left-pane__no-search-results__unread-header {
|
||||||
margin-bottom: 50px;
|
margin-bottom: 50px;
|
||||||
|
|
|
@ -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 {
|
shouldRecomputeRowHeights(old: Readonly<LeftPaneArchivePropsType>): boolean {
|
||||||
const hasSearchingChanged =
|
const hasSearchingChanged =
|
||||||
'conversationResults' in old !== Boolean(this.#searchHelper);
|
'conversationResults' in old !== Boolean(this.#searchHelper);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue