Browse Source

Fix displaying preloader on outgoing photos

master
Eduard Kuzmenko 3 years ago
parent
commit
91a8e9b12a
  1. 2
      src/components/wrappers.ts
  2. 2
      src/scss/partials/_chatlist.scss

2
src/components/wrappers.ts

@ -836,7 +836,7 @@ export function wrapPhoto({photo, message, container, boxWidth, boxHeight, withT @@ -836,7 +836,7 @@ export function wrapPhoto({photo, message, container, boxWidth, boxHeight, withT
const needFadeIn = (thumbImage || !cacheContext.downloaded) && rootScope.settings.animationsEnabled && !noFadeIn;
let preloader: ProgressivePreloader;
if(message?.media?.preloader) { // means upload
if(message?.media?.preloader && !withoutPreloader) { // means upload
preloader = message.media.preloader;
preloader.attach(container);
noAutoDownload = undefined;

2
src/scss/partials/_chatlist.scss

@ -283,7 +283,7 @@ ul.chatlist { @@ -283,7 +283,7 @@ ul.chatlist {
}
&.animating {
transition: background-color .2s ease-in-out, transform .2s ease-in-out;
transition: background-color .2s var(--transition-standard-easing), transform .2s var(--transition-standard-easing);
}
}

Loading…
Cancel
Save