Skip to content

Commit 9a94ef3

Browse files
committed
fix(ui): use dvh instead of vh
1 parent 37edd6a commit 9a94ef3

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

web/src/App.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
v-model="drawer"
153153
mobile-breakpoint="960"
154154
v-if="$route.path.startsWith('/project/')"
155+
class="NavDrawer"
155156
>
156157
<v-menu bottom max-width="235" max-height="100%" v-if="project">
157158
<template v-slot:activator="{ on, attrs }">
@@ -699,6 +700,9 @@
699700
<v-app v-else></v-app>
700701
</template>
701702
<style lang="scss">
703+
.NavDrawer {
704+
height: 100dvh !important;
705+
}
702706
.NewProSubscriptionMenuItem {
703707
transition: 0.2s transform;
704708
.v-list-item__content, .v-list-item__icon {

web/src/components/InventoryForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@
149149
}
150150
151151
.v-dialog--fullscreen .InventoryEditor--static .CodeMirror {
152-
height: calc(100vh - 540px) !important;
152+
height: calc(100dvh - 540px) !important;
153153
}
154154
155155
.v-dialog--fullscreen .InventoryEditor--static-yaml .CodeMirror {
156-
height: calc(100vh - 600px) !important;
156+
height: calc(100dvh - 600px) !important;
157157
}
158158
</style>
159159
<script>

web/src/components/TaskLogDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
.task-log-view__placeholder {
5757
margin-left: 24px;
5858
margin-right: 24px;
59-
height: calc(100vh - 208px);
59+
height: calc(100dvh - 208px);
6060
}
6161
</style>
6262
<script>

web/src/components/TaskLogView.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ $task-log-status-tab-height:
179179
.task-log-records {
180180
background: black;
181181
color: white;
182-
height: calc(90vh - #{$card-title-height + $task-log-status-tab-height});
182+
height: calc(90dvh - #{$card-title-height + $task-log-status-tab-height});
183183
overflow: auto;
184184
font-family: monospace;
185185
margin: 0;
@@ -191,18 +191,18 @@ $task-log-status-tab-height:
191191
}
192192
193193
.task-log-view--with-message .task-log-records {
194-
height: calc(90vh -
194+
height: calc(90dvh -
195195
#{$card-title-height + $task-log-message-height-total + $task-log-status-tab-height});
196196
}
197197
198198
.v-dialog--fullscreen {
199199
200200
.task-log-records {
201-
height: calc(100vh - #{$card-title-height + $task-log-status-tab-height});
201+
height: calc(100dvh - #{$card-title-height + $task-log-status-tab-height});
202202
}
203203
204204
.task-log-view--with-message .task-log-records {
205-
height: calc(100vh -
205+
height: calc(100dvh -
206206
#{$card-title-height + $task-log-message-height-total + $task-log-status-tab-height});
207207
}
208208
}

web/src/views/Auth.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323
}
324324
}
325325
.auth {
326-
height: 100vh;
326+
height: 100dvh;
327327
background: #80808024;
328328
}
329329
.auth {

0 commit comments

Comments
 (0)