fix responsive cropping issue for ios

This commit is contained in:
Mohit Panjwani
2022-02-22 12:29:37 +05:30
parent ca15751a5f
commit c28fc073e4
15 changed files with 32 additions and 39 deletions

View File

@ -53,3 +53,16 @@
//----------------------------------
@import "components/animation.scss";
body {
min-height: 100vh;
min-height: -webkit-fill-available;
}
html {
height: -webkit-fill-available;
}
.h-screen-ios {
height: -webkit-fill-available;
}

View File

@ -9,17 +9,11 @@
<ExchangeRateBulkUpdateModal />
<main
class="
pt-16
pb-16
h-screen h-screen-ios
overflow-y-auto
md:pl-56
xl:pl-64
min-h-0
"
class="h-screen h-screen-ios overflow-y-auto md:pl-56 xl:pl-64 min-h-0"
>
<div class="pt-16 pb-16">
<router-view />
</div>
</main>
</div>

View File

@ -1,5 +1,5 @@
<template>
<div class="h-screen h-screen-ios overflow-y-auto text-base">
<div class="h-screen overflow-y-auto text-base">
<NotificationRoot />
<div class="container mx-auto px-4">

View File

@ -1,13 +1,5 @@
<template>
<div
class="
grid
h-screen h-screen-ios
grid-cols-12
overflow-y-hidden
bg-gray-100
"
>
<div class="grid h-screen grid-cols-12 overflow-y-hidden bg-gray-100">
<NotificationRoot />
<div

View File

@ -115,7 +115,7 @@
class="
hidden
w-56
h-screen h-screen-ios
h-screen
pb-32
overflow-y-auto
bg-white

View File

@ -1,5 +1,5 @@
<template>
<div class="w-full h-screen h-screen-ios">
<div class="w-full h-screen">
<div class="flex items-center justify-center w-full h-full">
<div class="flex flex-col items-center justify-center">
<h1 class="text-primary-500" style="font-size: 10rem">

View File

@ -50,7 +50,7 @@
class="
hidden
w-full
h-screen h-screen-ios
h-screen
border-gray-100 border-solid
rounded
md:flex

View File

@ -50,7 +50,7 @@
class="
hidden
w-full
h-screen h-screen-ios
h-screen
border-gray-100 border-solid
rounded
md:flex

View File

@ -63,7 +63,7 @@
class="
hidden
w-full
h-screen h-screen-ios
h-screen
border-gray-100 border-solid
rounded
md:flex

View File

@ -49,7 +49,7 @@
class="
hidden
w-full
h-screen h-screen-ios
h-screen
border-gray-100 border-solid
rounded
md:flex

View File

@ -1,6 +1,6 @@
I
<template>
<div class="h-screen h-screen-ios overflow-y-auto min-h-0">
<div class="h-screen overflow-y-auto min-h-0">
<div class="bg-gradient-to-r from-primary-500 to-primary-400 h-5"></div>
<div

View File

@ -12,7 +12,7 @@
flex
items-end
justify-center
min-h-screen min-h-screen-ios
min-h-screen
px-4
pt-4
pb-20
@ -36,10 +36,7 @@
<!-- This element is to trick the browser into centering the modal contents. -->
<span
class="
hidden
sm:inline-block sm:align-middle sm:h-screen sm:h-screen-ios
"
class="hidden sm:inline-block sm:align-middle sm:h-screen"
aria-hidden="true"
>&#8203;</span
>

View File

@ -1,5 +1,5 @@
<template>
<div class="flex flex-col items-center justify-center h-screen h-screen-ios">
<div class="flex flex-col items-center justify-center h-screen">
<div class="loader loader-white">
<div class="loader-spined">
<div class="loader--icon">

View File

@ -13,7 +13,7 @@
flex
items-end
justify-center
min-h-screen min-h-screen-ios
min-h-screen
px-4
text-center
sm:block sm:px-2
@ -35,10 +35,7 @@
<!-- This element is to trick the browser into centering the modal contents. -->
<span
class="
hidden
sm:inline-block sm:align-middle sm:h-screen sm:h-screen-ios
"
class="hidden sm:inline-block sm:align-middle sm:h-screen"
aria-hidden="true"
>&#8203;</span
>

View File

@ -6,7 +6,7 @@
<!-- <SiteSidebar /> -->
<main class="mt-16 pb-16 h-screen h-screen-ios overflow-y-auto min-h-0">
<main class="mt-16 pb-16 h-screen overflow-y-auto min-h-0">
<router-view />
</main>
</div>