diff --git a/src/components/SceneryView/SceneryInfo/SceneryInfoRoutes.vue b/src/components/SceneryView/SceneryInfo/SceneryInfoRoutes.vue index 71a1941..bab7fbf 100644 --- a/src/components/SceneryView/SceneryInfo/SceneryInfoRoutes.vue +++ b/src/components/SceneryView/SceneryInfo/SceneryInfoRoutes.vue @@ -4,9 +4,11 @@ {{ $t('scenery.one-way-routes') }} @@ -16,9 +18,11 @@ {{ $t('scenery.two-way-routes') }} @@ -37,6 +41,19 @@ export default defineComponent({ default: {}, }, }, + + methods: { + setActiveShowLength(name: string) { + if (this.activeShowLength.includes(name)) this.activeShowLength.splice(this.activeShowLength.indexOf(name), 1); + else this.activeShowLength.push(name); + }, + }, + + data() { + return { + activeShowLength: [] as string[], + }; + }, }); @@ -66,6 +83,11 @@ ul.routes-list { li { margin: 0.5em 0.25em; + cursor: pointer; + + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; span { padding: 0.2em 0.25em; @@ -100,7 +122,6 @@ ul.routes-list { &:only-child { border-radius: 0.5em; - } } }