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"; @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 /> <ExchangeRateBulkUpdateModal />
<main <main
class=" class="h-screen h-screen-ios overflow-y-auto md:pl-56 xl:pl-64 min-h-0"
pt-16
pb-16
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 /> <router-view />
</div>
</main> </main>
</div> </div>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
I I
<template> <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 class="bg-gradient-to-r from-primary-500 to-primary-400 h-5"></div>
<div <div

View File

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

View File

@ -1,5 +1,5 @@
<template> <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 loader-white">
<div class="loader-spined"> <div class="loader-spined">
<div class="loader--icon"> <div class="loader--icon">

View File

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

View File

@ -6,7 +6,7 @@
<!-- <SiteSidebar /> --> <!-- <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 /> <router-view />
</main> </main>
</div> </div>