Browse Source

Fix hidden topbar again

master
Eduard Kuzmenko 3 years ago
parent
commit
18f560ad4b
  1. 4
      .env
  2. 5
      src/components/chat/topbar.ts

4
.env

@ -1,5 +1,5 @@
API_ID=1025907 API_ID=1025907
API_HASH=452b0359b988148995f22ff0f4229750 API_HASH=452b0359b988148995f22ff0f4229750
VERSION=1.4.0 VERSION=1.4.0
VERSION_FULL=1.4.0 (140) VERSION_FULL=1.4.0 (141)
BUILD=140 BUILD=141

5
src/components/chat/topbar.ts

@ -868,12 +868,13 @@ export default class ChatTopbar {
public setFloating = () => { public setFloating = () => {
const containers = [this.chatAudio, this.pinnedMessage && this.pinnedMessage.pinnedMessageContainer].filter(Boolean); const containers = [this.chatAudio, this.pinnedMessage && this.pinnedMessage.pinnedMessageContainer].filter(Boolean);
const count = containers.reduce((acc, container) => { const count = containers.reduce((acc, container) => {
const isFloating = container.isFloating();
this.container.classList.toggle(`is-pinned-${container.className}-floating`, isFloating);
if(!container.isVisible()) { if(!container.isVisible()) {
return acc; return acc;
} }
const isFloating = container.isFloating();
this.container.classList.toggle(`is-pinned-${container.className}-floating`, isFloating);
return acc + +isFloating; return acc + +isFloating;
}, 0); }, 0);
this.container.dataset.floating = '' + count; this.container.dataset.floating = '' + count;

Loading…
Cancel
Save