From fa9e5e58eb3d1953018ce06bf7103a120fcdff46 Mon Sep 17 00:00:00 2001 From: morethanwords Date: Mon, 9 Nov 2020 05:23:01 +0300 Subject: [PATCH] new PC init commit --- src/components/sidebarLeft/tabs/includedChats.ts | 5 +++++ src/scss/partials/_leftSidebar.scss | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/sidebarLeft/tabs/includedChats.ts b/src/components/sidebarLeft/tabs/includedChats.ts index 928ab643..5dd0c216 100644 --- a/src/components/sidebarLeft/tabs/includedChats.ts +++ b/src/components/sidebarLeft/tabs/includedChats.ts @@ -204,6 +204,11 @@ export default class AppIncludedChatsTab implements SliderTab { (categories.querySelector(`[data-peerID="${flag}"]`) as HTMLElement).click(); } } + + // ! потому что onOpen срабатывает раньше, чем блок отрисовывается, и высоты нет + setTimeout(() => { + this.selector.selectedScrollable.scrollTo(this.selector.selectedScrollable.scrollHeight, 'top', false, true); + }, 0); } onSelectChange = (length: number) => { diff --git a/src/scss/partials/_leftSidebar.scss b/src/scss/partials/_leftSidebar.scss index c985335c..ccde07e0 100644 --- a/src/scss/partials/_leftSidebar.scss +++ b/src/scss/partials/_leftSidebar.scss @@ -559,6 +559,7 @@ avatar-element { height: 32px; width: 32px; + font-size: .875rem; } .user-caption { @@ -574,7 +575,7 @@ width: 100%; .checkbox { - margin-top: -9px !important;; + margin-top: -9px !important; right: 0; position: absolute;