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
|
// eslint-disable-next-line jsx-a11y/alt-text
|
||||||
<img src={thumbDataUri} className={buildClassName(styles.preview)} />
|
<img src={thumbDataUri} className={buildClassName(styles.preview)} />
|
||||||
)}
|
)}
|
||||||
{!isAnimationReady && (
|
{!isAnimationReady && previewUrl && (
|
||||||
// eslint-disable-next-line jsx-a11y/alt-text
|
// eslint-disable-next-line jsx-a11y/alt-text
|
||||||
<img
|
<img
|
||||||
src={previewUrl}
|
src={previewUrl}
|
||||||
|
@ -13,15 +13,15 @@ import { IS_TOUCH_ENV } from '../../../util/environment';
|
|||||||
import { captureEvents, SwipeDirection } from '../../../util/captureEvents';
|
import { captureEvents, SwipeDirection } from '../../../util/captureEvents';
|
||||||
import buildClassName from '../../../util/buildClassName';
|
import buildClassName from '../../../util/buildClassName';
|
||||||
import captureEscKeyListener from '../../../util/captureEscKeyListener';
|
import captureEscKeyListener from '../../../util/captureEscKeyListener';
|
||||||
|
import { selectCurrentLimit } from '../../../global/selectors/limits';
|
||||||
import useShowTransition from '../../../hooks/useShowTransition';
|
import useShowTransition from '../../../hooks/useShowTransition';
|
||||||
import useLang from '../../../hooks/useLang';
|
import useLang from '../../../hooks/useLang';
|
||||||
import useHistoryBack from '../../../hooks/useHistoryBack';
|
import useHistoryBack from '../../../hooks/useHistoryBack';
|
||||||
|
import { useFolderManagerForUnreadCounters } from '../../../hooks/useFolderManager';
|
||||||
|
|
||||||
import Transition from '../../ui/Transition';
|
import Transition from '../../ui/Transition';
|
||||||
import TabList from '../../ui/TabList';
|
import TabList from '../../ui/TabList';
|
||||||
import ChatList from './ChatList';
|
import ChatList from './ChatList';
|
||||||
import { useFolderManagerForUnreadCounters } from '../../../hooks/useFolderManager';
|
|
||||||
import { selectCurrentLimit } from '../../../global/selectors/limits';
|
|
||||||
|
|
||||||
type OwnProps = {
|
type OwnProps = {
|
||||||
onScreenSelect: (screen: SettingsScreens) => void;
|
onScreenSelect: (screen: SettingsScreens) => void;
|
||||||
|
@ -97,6 +97,11 @@
|
|||||||
|
|
||||||
.settings-content-icon {
|
.settings-content-icon {
|
||||||
margin-bottom: 2.5rem;
|
margin-bottom: 2.5rem;
|
||||||
|
|
||||||
|
&.opacity-transition:not(.shown) {
|
||||||
|
display: block;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-main-menu-premium .PremiumIcon {
|
.settings-main-menu-premium .PremiumIcon {
|
||||||
|
Loading…
Reference in New Issue
Block a user