mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
fix responsive cropping issue for ios
This commit is contained in:
13
resources/sass/crater.scss
vendored
13
resources/sass/crater.scss
vendored
@ -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;
|
||||
}
|
||||
|
||||
@ -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"
|
||||
>
|
||||
<router-view />
|
||||
<div class="pt-16 pb-16">
|
||||
<router-view />
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -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
|
||||
|
||||
@ -115,7 +115,7 @@
|
||||
class="
|
||||
hidden
|
||||
w-56
|
||||
h-screen h-screen-ios
|
||||
h-screen
|
||||
pb-32
|
||||
overflow-y-auto
|
||||
bg-white
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -50,7 +50,7 @@
|
||||
class="
|
||||
hidden
|
||||
w-full
|
||||
h-screen h-screen-ios
|
||||
h-screen
|
||||
border-gray-100 border-solid
|
||||
rounded
|
||||
md:flex
|
||||
|
||||
@ -50,7 +50,7 @@
|
||||
class="
|
||||
hidden
|
||||
w-full
|
||||
h-screen h-screen-ios
|
||||
h-screen
|
||||
border-gray-100 border-solid
|
||||
rounded
|
||||
md:flex
|
||||
|
||||
@ -63,7 +63,7 @@
|
||||
class="
|
||||
hidden
|
||||
w-full
|
||||
h-screen h-screen-ios
|
||||
h-screen
|
||||
border-gray-100 border-solid
|
||||
rounded
|
||||
md:flex
|
||||
|
||||
@ -49,7 +49,7 @@
|
||||
class="
|
||||
hidden
|
||||
w-full
|
||||
h-screen h-screen-ios
|
||||
h-screen
|
||||
border-gray-100 border-solid
|
||||
rounded
|
||||
md:flex
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
>​</span
|
||||
>
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -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"
|
||||
>​</span
|
||||
>
|
||||
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user