Fix layout for iOS Safari on auth pages
This commit is contained in:
parent
6d8193671a
commit
770ef1de30
@ -29,8 +29,9 @@
|
|||||||
|
|
||||||
<div class="whole" id="auth-pages" style="display: none;">
|
<div class="whole" id="auth-pages" style="display: none;">
|
||||||
<div class="tabs-container auth-pages__container" data-slider="tabs">
|
<div class="tabs-container auth-pages__container" data-slider="tabs">
|
||||||
<div class="page-sign scrollable scrollable-y">
|
<div class="page-sign">
|
||||||
<div class="container center-align">
|
<div class="container center-align">
|
||||||
|
<div class="scrollable scrollable-y">
|
||||||
<div class="auth-image">
|
<div class="auth-image">
|
||||||
<svg class="sign-logo" xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160">
|
<svg class="sign-logo" xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160">
|
||||||
<use href="#logo" />
|
<use href="#logo" />
|
||||||
@ -57,8 +58,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="page-signQR scrollable scrollable-y">
|
</div>
|
||||||
|
<div class="page-signQR">
|
||||||
<div class="container center-align">
|
<div class="container center-align">
|
||||||
|
<div class="scrollable scrollable-y">
|
||||||
<div class="auth-image">
|
<div class="auth-image">
|
||||||
<canvas id="qr-code"></canvas>
|
<canvas id="qr-code"></canvas>
|
||||||
</div>
|
</div>
|
||||||
@ -67,8 +70,10 @@
|
|||||||
<div class="qr"><a href="#" class="a-qr">Or log in using your phone number</a></div>
|
<div class="qr"><a href="#" class="a-qr">Or log in using your phone number</a></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="page-authCode scrollable scrollable-y">
|
</div>
|
||||||
|
<div class="page-authCode">
|
||||||
<div class="container center-align">
|
<div class="container center-align">
|
||||||
|
<div class="scrollable scrollable-y">
|
||||||
<div class="auth-image"></div>
|
<div class="auth-image"></div>
|
||||||
<div class="phone-wrapper">
|
<div class="phone-wrapper">
|
||||||
<h4 class="phone"></h4>
|
<h4 class="phone"></h4>
|
||||||
@ -83,8 +88,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="page-password scrollable scrollable-y">
|
</div>
|
||||||
|
<div class="page-password">
|
||||||
<div class="container center-align">
|
<div class="container center-align">
|
||||||
|
<div class="scrollable scrollable-y">
|
||||||
<div class="auth-image"></div>
|
<div class="auth-image"></div>
|
||||||
<h4 class="phone">Enter a password</h4>
|
<h4 class="phone">Enter a password</h4>
|
||||||
<p class="subtitle">Your account is protected with<br>an additional password</p>
|
<p class="subtitle">Your account is protected with<br>an additional password</p>
|
||||||
@ -98,8 +105,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="page-signUp scrollable scrollable-y">
|
</div>
|
||||||
|
<div class="page-signUp">
|
||||||
<div class="container center-align">
|
<div class="container center-align">
|
||||||
|
<div class="scrollable scrollable-y">
|
||||||
<div class="auth-image avatar-edit">
|
<div class="auth-image avatar-edit">
|
||||||
<canvas class="avatar-edit-canvas" id="canvas-avatar"></canvas>
|
<canvas class="avatar-edit-canvas" id="canvas-avatar"></canvas>
|
||||||
<span class="tgico tgico-cameraadd"></span>
|
<span class="tgico tgico-cameraadd"></span>
|
||||||
@ -121,6 +130,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="popup popup-avatar hide" id="popup-avatar" style="display: none;">
|
<div class="popup popup-avatar hide" id="popup-avatar" style="display: none;">
|
||||||
<div class="popup-container z-depth-1">
|
<div class="popup-container z-depth-1">
|
||||||
<div class="popup-header">
|
<div class="popup-header">
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
import pageIm from './pageIm';
|
|
||||||
//import CryptoWorker from '../lib/crypto/cryptoworker';
|
//import CryptoWorker from '../lib/crypto/cryptoworker';
|
||||||
//import apiManager from '../lib/mtproto/apiManager';
|
//import apiManager from '../lib/mtproto/apiManager';
|
||||||
import { putPreloader } from '../components/misc';
|
import { putPreloader } from '../components/misc';
|
||||||
|
import mediaSizes from '../helpers/mediaSizes';
|
||||||
|
import { AccountPassword } from '../layer';
|
||||||
import LottieLoader, { RLottiePlayer } from '../lib/lottieLoader';
|
import LottieLoader, { RLottiePlayer } from '../lib/lottieLoader';
|
||||||
//import passwordManager from '../lib/mtproto/passwordManager';
|
//import passwordManager from '../lib/mtproto/passwordManager';
|
||||||
import apiManager from '../lib/mtproto/mtprotoworker';
|
import apiManager from '../lib/mtproto/mtprotoworker';
|
||||||
import Page from './page';
|
|
||||||
import passwordManager from '../lib/mtproto/passwordManager';
|
import passwordManager from '../lib/mtproto/passwordManager';
|
||||||
import { cancelEvent } from '../lib/utils';
|
import { cancelEvent } from '../lib/utils';
|
||||||
import { AccountPassword } from '../layer';
|
import Page from './page';
|
||||||
import mediaSizes from '../helpers/mediaSizes';
|
import pageIm from './pageIm';
|
||||||
|
|
||||||
|
|
||||||
let passwordInput: HTMLInputElement;
|
let passwordInput: HTMLInputElement;
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ let onFirstMount = (): Promise<any> => {
|
|||||||
this.textContent = 'PLEASE WAIT...';
|
this.textContent = 'PLEASE WAIT...';
|
||||||
putPreloader(this);
|
putPreloader(this);
|
||||||
|
|
||||||
passwordManager.check(value, state).then((response: any) => {
|
passwordManager.check(value, state).then((response) => {
|
||||||
//console.log('passwordManager response:', response);
|
//console.log('passwordManager response:', response);
|
||||||
|
|
||||||
switch(response._) {
|
switch(response._) {
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
@include respond-to(handhelds) {
|
@include respond-to(handhelds) {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
@ -25,6 +26,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.auth-image, .subtitle, .input-wrapper {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
.tabs-container {
|
.tabs-container {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -35,14 +40,6 @@
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
} */
|
} */
|
||||||
|
|
||||||
&:before, &:after {
|
|
||||||
content: " ";
|
|
||||||
flex: 1;
|
|
||||||
min-height: 3rem;
|
|
||||||
/* height: 105px; */
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
> div {
|
> div {
|
||||||
height: 810px;
|
height: 810px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -51,6 +48,19 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.container > .scrollable {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
&:before, &:after {
|
||||||
|
content: " ";
|
||||||
|
flex: 1;
|
||||||
|
min-height: 3rem;
|
||||||
|
/* height: 105px; */
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// @media (max-height: 858px) {
|
// @media (max-height: 858px) {
|
||||||
@ -88,6 +98,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-authCode {
|
||||||
|
.phone-wrapper {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.sign-logo {
|
.sign-logo {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
@ -114,6 +130,10 @@
|
|||||||
height: 166px;
|
height: 166px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h4, .qr-description, .qr {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .page-signQR {
|
/* .page-signQR {
|
||||||
@ -141,7 +161,10 @@
|
|||||||
@include respond-to(handhelds) {
|
@include respond-to(handhelds) {
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.fullName {
|
||||||
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#signUp {
|
#signUp {
|
||||||
|
@ -5,6 +5,11 @@
|
|||||||
&[type="password"] {
|
&[type="password"] {
|
||||||
font-size: 2.25rem;
|
font-size: 2.25rem;
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
|
|
||||||
|
html.is-ios & {
|
||||||
|
font-size: .75rem;
|
||||||
|
letter-spacing: .125rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user