mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-30 04:39:00 +01:00
Settings: Fix various flickers (follow-up)
This commit is contained in:
parent
4d8d208d78
commit
8979f83542
@ -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}
|
||||
|
@ -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;
|
||||
|
@ -97,6 +97,11 @@
|
||||
|
||||
.settings-content-icon {
|
||||
margin-bottom: 2.5rem;
|
||||
|
||||
&.opacity-transition:not(.shown) {
|
||||
display: block;
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.settings-main-menu-premium .PremiumIcon {
|
||||
|
Loading…
Reference in New Issue
Block a user