/ Fixed navbar layout
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
<div class="navbar">
|
||||
<ul class="navbar-menu no-style">
|
||||
<li v-for="item in items" :key="item.url" class="navbar-item">
|
||||
<router-link :to="item.link" class="navbar-link no-style">
|
||||
<nuxt-link :to="item.link" class="navbar-link no-style">
|
||||
{{ item.text }}
|
||||
</router-link>
|
||||
</nuxt-link>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -84,7 +84,7 @@ export default defineComponent({
|
||||
transition: width 0.25s ease-in-out;
|
||||
}
|
||||
|
||||
&.router-link-active {
|
||||
&.nuxt-link-exact-active {
|
||||
&:after {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div class="fs-wrapper">
|
||||
<navbar />
|
||||
<div class="fs-content">
|
||||
<Nuxt />
|
||||
</div>
|
||||
|
||||
@@ -27,8 +27,7 @@ export default {
|
||||
},
|
||||
|
||||
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
|
||||
plugins: [
|
||||
],
|
||||
plugins: [],
|
||||
|
||||
// Auto import components: https://go.nuxtjs.dev/config-components
|
||||
components: true,
|
||||
@@ -50,6 +49,5 @@ export default {
|
||||
axios: {},
|
||||
|
||||
// Build Configuration: https://go.nuxtjs.dev/config-build
|
||||
build: {
|
||||
}
|
||||
build: {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user