Fix empty notification
This commit is contained in:
parent
2d6b25a0a4
commit
f0cdecc5b8
@ -146,7 +146,7 @@ export function horizontalMenu(tabs: HTMLElement, content: HTMLElement, onClick?
|
|||||||
const scaleFactor = currentIndicator.clientWidth / indicator.clientWidth;
|
const scaleFactor = currentIndicator.clientWidth / indicator.clientWidth;
|
||||||
indicator.style.transform = `translate3d(${shiftLeft}px, 0, 0) scale3d(${scaleFactor}, 1, 1)`;
|
indicator.style.transform = `translate3d(${shiftLeft}px, 0, 0) scale3d(${scaleFactor}, 1, 1)`;
|
||||||
|
|
||||||
console.log(`translate3d(${shiftLeft}px, 0, 0) scale3d(${scaleFactor}, 1, 1)`);
|
//console.log(`translate3d(${shiftLeft}px, 0, 0) scale3d(${scaleFactor}, 1, 1)`);
|
||||||
|
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
// Now we remove the transform to let it animate to its own position and size.
|
// Now we remove the transform to let it animate to its own position and size.
|
||||||
|
@ -619,16 +619,16 @@ export class AppSidebarRight extends SidebarSlider {
|
|||||||
if(this.loadMutex) {
|
if(this.loadMutex) {
|
||||||
promises.push(this.loadMutex);
|
promises.push(this.loadMutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(promises.length) {
|
||||||
|
await Promise.all(promises);
|
||||||
|
if(this.peerID != peerID) {
|
||||||
|
this.log.warn('peer changed');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(elemsToAppend.length) {
|
if(elemsToAppend.length) {
|
||||||
if(promises.length) {
|
|
||||||
await Promise.all(promises);
|
|
||||||
if(this.peerID != peerID) {
|
|
||||||
this.log.warn('peer changed');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sharedMediaDiv.append(...elemsToAppend);
|
sharedMediaDiv.append(...elemsToAppend);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user