chore: viewport & routing fixes

This commit is contained in:
2024-08-29 15:42:44 +02:00
parent b04797052f
commit 289fd310df
5 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -407,7 +407,7 @@ export default defineComponent({
$rowCol: #424242;
.station_table {
height: 90vh;
height: calc(100vh - 10em);
max-height: 2000px;
min-height: 700px;
overflow: auto;
+3
View File
@@ -82,6 +82,9 @@ export default defineComponent({
@import '../../styles/animations.scss';
.train-table {
height: calc(100vh - 8em);
min-height: 550px;
position: relative;
overflow-y: auto;
overflow-x: hidden;
+2 -7
View File
@@ -69,7 +69,8 @@ const router = createRouter({
if (
(to.name == 'SceneryView' || to.name == 'DriverView') &&
from.name !== to.name &&
from.query['view'] === undefined
from.query['view'] === undefined &&
!savedPosition
)
return { el: `.app_main`, top: -15 };
@@ -79,10 +80,4 @@ const router = createRouter({
routes
});
router.beforeEach((to, from, next) => {
next((vm) => {
(vm as any)['xd'] = 'xd';
});
});
export default router;
+1 -1
View File
@@ -11,7 +11,7 @@
.list_wrapper {
overflow-y: auto;
height: 90vh;
height: calc(100vh - 10em);
min-height: 650px;
margin-top: 0.5em;
position: relative;
+1 -1
View File
@@ -234,7 +234,7 @@ button.back-btn {
padding: 1em 0.5em;
height: calc(100vh - 0.5em);
min-height: 800px;
min-height: 500px;
max-height: 2000px;
}