mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-12 17:17:24 +01:00
Profile: Fix flickering on iOS (#1245)
This commit is contained in:
parent
339c747784
commit
02dd2044e8
@ -112,8 +112,6 @@ const Main: FC<StateProps & DispatchProps> = ({
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// For animating Symbol Menu on mobile
|
// For animating Symbol Menu on mobile
|
||||||
document.body.classList.toggle('is-middle-column-open', className.includes('middle-column-open'));
|
document.body.classList.toggle('is-middle-column-open', className.includes('middle-column-open'));
|
||||||
// For animating components in portals (i.e. Notification)
|
|
||||||
document.body.classList.toggle('is-right-column-shown', className.includes('right-column-open'));
|
|
||||||
}, [className]);
|
}, [className]);
|
||||||
|
|
||||||
// Add `body` classes when toggling right column
|
// Add `body` classes when toggling right column
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
@supports (overflow-y: overlay) {
|
@supports (overflow-y: overlay) {
|
||||||
overflow-y: overlay !important;
|
overflow-y: overlay !important;
|
||||||
|
Loading…
Reference in New Issue
Block a user