From cbc812bdec67913a51fcbf9e600c33faca0b28f1 Mon Sep 17 00:00:00 2001 From: Spythere Date: Tue, 17 Mar 2026 22:36:28 +0100 Subject: [PATCH] refactor(scenery): changed position of links and actions for active timetables to the bottom of the list --- .../SceneryView/SceneryTimetable.vue | 14 --- .../SceneryTimetableHeader.vue | 85 -------------- .../SceneryTimetable/SceneryTimetableList.vue | 107 ++++++++++++++++-- src/views/SceneryView.vue | 3 +- 4 files changed, 101 insertions(+), 108 deletions(-) diff --git a/src/components/SceneryView/SceneryTimetable.vue b/src/components/SceneryView/SceneryTimetable.vue index 911ae61..e528486 100644 --- a/src/components/SceneryView/SceneryTimetable.vue +++ b/src/components/SceneryView/SceneryTimetable.vue @@ -5,7 +5,6 @@ :onlineScenery="onlineScenery" :chosenCheckpoint="chosenCheckpoint" :showStockThumbnails="showStockThumbnails" - @toggleThumbnails="toggleThumbnails" /> - - - - GeneraTOR app icon - - - - icon-pragotron - - - - icon-tablice - - - - @@ -70,39 +32,8 @@ const props = defineProps({ chosenCheckpoint: { type: String, required: true - }, - - showStockThumbnails: { - type: Boolean, - required: true } }); - -const emits = defineEmits(['toggleThumbnails']); - -const mainStore = useMainStore(); - -const tabliceZbiorczeHref = computed(() => { - let url = `https://tablice-td2.web.app/?station=${props.station!.name}`; - if (props.chosenCheckpoint) url += `&checkpoint=${props.chosenCheckpoint}`; - - return url; -}); - -const pragotronHref = computed(() => { - let url = `https://pragotron-td2.web.app/board?name=${props.station!.name}®ion=${mainStore.region.id}`; - if (props.chosenCheckpoint) url += `&checkpoint=${props.chosenCheckpoint}`; - - return url; -}); - -const generatorHref = computed(() => { - return `https://generator-td2.spythere.eu/?sceneryId=${props.onlineScenery!.name}|${props.onlineScenery!.region}`; -}); - -function toggleThumbnails() { - emits('toggleThumbnails'); -} diff --git a/src/components/SceneryView/SceneryTimetable/SceneryTimetableList.vue b/src/components/SceneryView/SceneryTimetable/SceneryTimetableList.vue index d62d37a..f5ec2b4 100644 --- a/src/components/SceneryView/SceneryTimetable/SceneryTimetableList.vue +++ b/src/components/SceneryView/SceneryTimetable/SceneryTimetableList.vue @@ -35,6 +35,8 @@ +
+
+ +
+ + GeneraTOR app icon + + + + icon-pragotron + + + + icon-tablice + + + +
diff --git a/src/views/SceneryView.vue b/src/views/SceneryView.vue index 590d7e8..3afd75a 100644 --- a/src/views/SceneryView.vue +++ b/src/views/SceneryView.vue @@ -184,7 +184,7 @@ function setViewMode(componentName: string) { background-color: #181818; border-radius: 0.5em; - padding: 1em 0.5em; + padding: 0.5em; } .scenery-left { @@ -196,7 +196,6 @@ function setViewMode(componentName: string) { display: grid; grid-template-rows: auto 1fr; gap: 1em; - } .scenery-actions {