Pogrubienie linku dziennika w headerze

This commit is contained in:
2022-12-21 18:39:40 +01:00
parent a25dbe9fd5
commit f74440ba6f
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -33,7 +33,8 @@
.route {
margin: 0 0.2em;
&-active {
&-active,
&[data-active='true'] {
color: $accentCol;
font-weight: bold;
}
+1 -1
View File
@@ -48,7 +48,7 @@
/
<router-link class="route" active-class="route-active" to="/trains">{{ $t('app.trains') }}</router-link>
/
<router-link class="route" active-class="route-active" to="/journal/timetables">
<router-link class="route" active-class="route-active" :data-active="$route.path.startsWith('/journal')" to="/journal">
{{ $t('app.journal') }}
</router-link>
</span>
+4 -1
View File
@@ -19,7 +19,10 @@ const routes: Array<RouteRecordRaw> = [
name: 'SceneryView',
component: () => import('../views/SceneryView.vue'),
},
{
path: '/journal',
redirect: '/journal/timetables'
},
{
path: '/journal/timetables',
name: 'JournalTimetables',