Skip to content

Commit 33f414d

Browse files
committed
fix: update CSS to use 'dvh' units for responsive height adjustments
1 parent 7ca0dea commit 33f414d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

adminforth/documentation/blog/2024-10-01-ai-blog/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,12 +736,12 @@ $grColor5: #695BE9;
736736
-moz-osx-font-smoothing: grayscale;
737737
// gradient with color spots
738738
animation: gradient 15s ease infinite;
739-
min-height: 100vh;
739+
min-height: 100dvh;
740740
}
741741
body {
742742
margin: 0;
743743
padding: 0;
744-
max-height: 100vh;
744+
max-height: 100dvh;
745745
overflow: overlay;
746746
background-image: radial-gradient(
747747
circle farthest-corner at top left, $grColor1 0%, rgba(225, 243, 97,0) 50%),

adminforth/servers/express.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const respondNoServer = (title, explanation) => {
7676
display: flex;
7777
justify-content: center;
7878
align-items: center;
79-
height: 100vh;
79+
height: 100dvh;
8080
flex-direction: column;
8181
}
8282
</style>

adminforth/spa/src/components/Filters.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
:class="show ? 'top-0 transform-none' : ''"
88
tabindex="-1" aria-labelledby="drawer-navigation-label"
9-
:style="{ height: `calc(100vh ` }"
9+
:style="{ height: `calc(100dvh ` }"
1010
>
1111
<h5 id="drawer-navigation-label" class="text-base font-semibold text-gray-500 uppercase dark:text-gray-400">
1212
{{ $t('Filters') }}

adminforth/spa/src/views/ResourceParent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div :key="`${$route?.params.resourceId}---${$route?.params.primaryKey}`" class="p-4 flex"
3-
:class="limitHeightToPage ? 'h-[calc(100vh-3.5rem)]': undefined"
3+
:class="limitHeightToPage ? 'h-[calc(100dvh-3.5rem)]': undefined"
44
>
55
<RouterView/>
66
</div>

dev-demo/custom/Dash.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="px-4 py-4 bg-blue-50 dark:bg-gray-900 dark:shadow-none min-h-[calc(100vh-55px)] ">
2+
<div class="px-4 py-4 bg-blue-50 dark:bg-gray-900 dark:shadow-none min-h-[calc(100dvh-55px)] ">
33

44
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4">
55
<div class="max-w-md w-full bg-white rounded-lg shadow dark:bg-gray-800 p-4 md:p-5" v-if="data" >

0 commit comments

Comments
 (0)