mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
chore: viewport & routing fixes
This commit is contained in:
@@ -407,7 +407,7 @@ export default defineComponent({
|
|||||||
$rowCol: #424242;
|
$rowCol: #424242;
|
||||||
|
|
||||||
.station_table {
|
.station_table {
|
||||||
height: 90vh;
|
height: calc(100vh - 10em);
|
||||||
max-height: 2000px;
|
max-height: 2000px;
|
||||||
min-height: 700px;
|
min-height: 700px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|||||||
@@ -82,6 +82,9 @@ export default defineComponent({
|
|||||||
@import '../../styles/animations.scss';
|
@import '../../styles/animations.scss';
|
||||||
|
|
||||||
.train-table {
|
.train-table {
|
||||||
|
height: calc(100vh - 8em);
|
||||||
|
min-height: 550px;
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
|||||||
+2
-7
@@ -69,7 +69,8 @@ const router = createRouter({
|
|||||||
if (
|
if (
|
||||||
(to.name == 'SceneryView' || to.name == 'DriverView') &&
|
(to.name == 'SceneryView' || to.name == 'DriverView') &&
|
||||||
from.name !== to.name &&
|
from.name !== to.name &&
|
||||||
from.query['view'] === undefined
|
from.query['view'] === undefined &&
|
||||||
|
!savedPosition
|
||||||
)
|
)
|
||||||
return { el: `.app_main`, top: -15 };
|
return { el: `.app_main`, top: -15 };
|
||||||
|
|
||||||
@@ -79,10 +80,4 @@ const router = createRouter({
|
|||||||
routes
|
routes
|
||||||
});
|
});
|
||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
|
||||||
next((vm) => {
|
|
||||||
(vm as any)['xd'] = 'xd';
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
.list_wrapper {
|
.list_wrapper {
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
height: 90vh;
|
height: calc(100vh - 10em);
|
||||||
min-height: 650px;
|
min-height: 650px;
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ button.back-btn {
|
|||||||
padding: 1em 0.5em;
|
padding: 1em 0.5em;
|
||||||
|
|
||||||
height: calc(100vh - 0.5em);
|
height: calc(100vh - 0.5em);
|
||||||
min-height: 800px;
|
min-height: 500px;
|
||||||
max-height: 2000px;
|
max-height: 2000px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user