From 111ffe687d5c3db846619f82d7865d1af05a270a Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 5 Dec 2017 10:17:16 +0100 Subject: [PATCH] Fixed active class not showing correctly --- frontend/src/App.vue | 14 ++++++++++++++ frontend/src/router/index.js | 3 +-- models/books_list.go | 1 + 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index d1e14e9..80ae8cf 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -93,4 +93,18 @@ export default { .grey{ color: #ccc; } + + .ui.secondary.menu .router-link-exact-active{ + box-shadow: none; + background: rgba(0,0,0,.05); + color: rgba(0,0,0,.95); + border-radius: .28571429rem; + align-self: center; + border: none; + padding: .78571429em .92857143em; + margin: 0 .35714286em; + -webkit-transition: color .1s ease; + transition: color .1s ease; + font-weight: 400; + } diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index f5f5068..93f1933 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -109,6 +109,5 @@ export default new Router({ name: 'item-edit', component: ItemsAddEdit } - ], - linkActiveClass: 'active' + ] }) diff --git a/models/books_list.go b/models/books_list.go index f55c9ba..2ae367e 100644 --- a/models/books_list.go +++ b/models/books_list.go @@ -53,6 +53,7 @@ func ListBooks(searchterm string) (books []*Book, err error) { for _, pub := range pubs { if pub.ID == book.PublisherID { books[i].Publisher = pub + break // Take the first quantity you find and exit } }