Settings: Fix various flickers (follow-up)

This commit is contained in:
Alexander Zinchuk 2022-09-16 18:28:47 +02:00
parent 4d8d208d78
commit 8979f83542
3 changed files with 8 additions and 3 deletions

View File

@ -41,7 +41,7 @@ function AnimatedIconWithPreview(props: OwnProps) {
// eslint-disable-next-line jsx-a11y/alt-text
<img src={thumbDataUri} className={buildClassName(styles.preview)} />
)}
{!isAnimationReady && (
{!isAnimationReady && previewUrl && (
// eslint-disable-next-line jsx-a11y/alt-text
<img
src={previewUrl}

View File

@ -13,15 +13,15 @@ import { IS_TOUCH_ENV } from '../../../util/environment';
import { captureEvents, SwipeDirection } from '../../../util/captureEvents';
import buildClassName from '../../../util/buildClassName';
import captureEscKeyListener from '../../../util/captureEscKeyListener';
import { selectCurrentLimit } from '../../../global/selectors/limits';
import useShowTransition from '../../../hooks/useShowTransition';
import useLang from '../../../hooks/useLang';
import useHistoryBack from '../../../hooks/useHistoryBack';
import { useFolderManagerForUnreadCounters } from '../../../hooks/useFolderManager';
import Transition from '../../ui/Transition';
import TabList from '../../ui/TabList';
import ChatList from './ChatList';
import { useFolderManagerForUnreadCounters } from '../../../hooks/useFolderManager';
import { selectCurrentLimit } from '../../../global/selectors/limits';
type OwnProps = {
onScreenSelect: (screen: SettingsScreens) => void;

View File

@ -97,6 +97,11 @@
.settings-content-icon {
margin-bottom: 2.5rem;
&.opacity-transition:not(.shown) {
display: block;
visibility: hidden;
}
}
.settings-main-menu-premium .PremiumIcon {