mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
hotfixy designu
This commit is contained in:
+1
-2
@@ -85,8 +85,6 @@ export default defineComponent({
|
|||||||
|
|
||||||
// popup handling
|
// popup handling
|
||||||
window.addEventListener('mousemove', (e: MouseEvent) => {
|
window.addEventListener('mousemove', (e: MouseEvent) => {
|
||||||
e.stopPropagation();
|
|
||||||
|
|
||||||
const targetEl = e
|
const targetEl = e
|
||||||
.composedPath()
|
.composedPath()
|
||||||
.find((p) => p instanceof HTMLElement && p.getAttribute('data-popup-key'));
|
.find((p) => p instanceof HTMLElement && p.getAttribute('data-popup-key'));
|
||||||
@@ -243,6 +241,7 @@ export default defineComponent({
|
|||||||
grid-template-columns: 100%;
|
grid-template-columns: 100%;
|
||||||
|
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app_main {
|
.app_main {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
v-for="{ timetable, showExtraInfo } in computedTimetableHistory"
|
v-for="{ timetable, showExtraInfo } in computedTimetableHistory"
|
||||||
class="journal_item"
|
class="journal_item"
|
||||||
:key="timetable.id"
|
:key="timetable.id"
|
||||||
@click.stop.prevent="showExtraInfo.value = !showExtraInfo.value"
|
@click="showExtraInfo.value = !showExtraInfo.value"
|
||||||
>
|
>
|
||||||
<div class="journal_item-info">
|
<div class="journal_item-info">
|
||||||
<!-- General -->
|
<!-- General -->
|
||||||
|
|||||||
@@ -31,7 +31,10 @@ export default defineComponent({
|
|||||||
let translateX = '0px',
|
let translateX = '0px',
|
||||||
translateY = '30px';
|
translateY = '30px';
|
||||||
|
|
||||||
if (val.x <= boxWidth / 2) {
|
if (clientWidth < 500) {
|
||||||
|
previewEl.style.left = '50%';
|
||||||
|
translateX = '-50%';
|
||||||
|
} else if (val.x <= boxWidth / 2) {
|
||||||
previewEl.style.left = '0';
|
previewEl.style.left = '0';
|
||||||
translateX = '0px';
|
translateX = '0px';
|
||||||
} else if (val.x >= clientWidth - boxWidth / 2) {
|
} else if (val.x >= clientWidth - boxWidth / 2) {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
v-if="popupStore.currentPopupContent"
|
v-if="popupStore.currentPopupContent"
|
||||||
@load="onImageLoad"
|
@load="onImageLoad"
|
||||||
@error="onImageError"
|
@error="onImageError"
|
||||||
@click="popupStore.onPopUpHide"
|
|
||||||
width="300"
|
width="300"
|
||||||
height="176"
|
height="176"
|
||||||
class="rounded-md w-full h-auto"
|
class="rounded-md w-full h-auto"
|
||||||
|
|||||||
@@ -126,7 +126,7 @@
|
|||||||
{{ $t('trains.cars') }}: {{ train.stockList.length - 1 }}
|
{{ $t('trains.cars') }}: {{ train.stockList.length - 1 }}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
|
||||||
<span>{{ train.speed }}km/h</span>
|
<span class="text--primary">{{ train.speed }} km/h</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="driver_position text--grayed" style="margin-top: 0.25em">
|
<div class="driver_position text--grayed" style="margin-top: 0.25em">
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
height: 90vh;
|
height: 90vh;
|
||||||
min-height: 550px;
|
min-height: 550px;
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
padding-right: 0.2em;
|
padding-right: 0.2em;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user