Fix broken navigation

This commit is contained in:
Eduard Kuzmenko 2021-04-10 21:28:41 +04:00
parent 1b14d8f22d
commit 2cdae0ddd3
3 changed files with 16 additions and 3 deletions

View File

@ -137,6 +137,7 @@ export class AppNavigationController {
const ret = this.findItemByType(type);
if(ret) {
this.manual = true;
// ! commented because 'popstate' event will be fired with delay
//if(ret.index !== (this.navigations.length - 1)) {
this.navigations.splice(ret.index, 1);
this.handleItem(ret.item);
@ -145,8 +146,7 @@ export class AppNavigationController {
}
}
// ! commented because 'popstate' event will be fired with delay
//history.back();
history.back();
}
public pushItem(item: NavigationItem) {

View File

@ -166,6 +166,7 @@ class PeerProfileAvatars {
public static BASE_CLASS = 'profile-avatars';
public container: HTMLElement;
public avatars: HTMLElement;
//public gradient: HTMLElement;
public info: HTMLElement;
public tabs: HTMLDivElement;
public listLoader: ListLoader<string>;
@ -178,13 +179,16 @@ class PeerProfileAvatars {
this.avatars = document.createElement('div');
this.avatars.classList.add(PeerProfileAvatars.BASE_CLASS + '-avatars');
//this.gradient = document.createElement('div');
//this.gradient.classList.add(PeerProfileAvatars.BASE_CLASS + '-gradient');
this.info = document.createElement('div');
this.info.classList.add(PeerProfileAvatars.BASE_CLASS + '-info');
this.tabs = document.createElement('div');
this.tabs.classList.add(PeerProfileAvatars.BASE_CLASS + '-tabs');
this.container.append(this.avatars, this.info, this.tabs);
this.container.append(this.avatars, /* this.gradient, */this.info, this.tabs);
let cancel = false;
attachClickEvent(this.container, (_e) => {

View File

@ -57,6 +57,15 @@
}
}
/* &-gradient {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 80px;
background: linear-gradient(360deg, var(--secondary-color) 8.98%, rgba(0, 0, 0, 0) 100%);
} */
&-info {
position: absolute;
bottom: 0;