Browse Source

new PC init commit

master
morethanwords 4 years ago
parent
commit
fa9e5e58eb
  1. 5
      src/components/sidebarLeft/tabs/includedChats.ts
  2. 3
      src/scss/partials/_leftSidebar.scss

5
src/components/sidebarLeft/tabs/includedChats.ts

@ -204,6 +204,11 @@ export default class AppIncludedChatsTab implements SliderTab {
(categories.querySelector(`[data-peerID="${flag}"]`) as HTMLElement).click(); (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) => { onSelectChange = (length: number) => {

3
src/scss/partials/_leftSidebar.scss

@ -559,6 +559,7 @@
avatar-element { avatar-element {
height: 32px; height: 32px;
width: 32px; width: 32px;
font-size: .875rem;
} }
.user-caption { .user-caption {
@ -574,7 +575,7 @@
width: 100%; width: 100%;
.checkbox { .checkbox {
margin-top: -9px !important;; margin-top: -9px !important;
right: 0; right: 0;
position: absolute; position: absolute;

Loading…
Cancel
Save