mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
[signalapp/Signal-Desktop#7242] Allow collapsing archive sidebar
Co-authored-by: lukas <lukas.walter@aceart.de>
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user