Fixed active class not showing correctly

This commit is contained in:
kolaente 2017-12-05 10:17:16 +01:00
parent 0f092318e8
commit 111ffe687d
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 16 additions and 2 deletions

View File

@ -93,4 +93,18 @@ export default {
.grey{ .grey{
color: #ccc; 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;
}
</style> </style>

View File

@ -109,6 +109,5 @@ export default new Router({
name: 'item-edit', name: 'item-edit',
component: ItemsAddEdit component: ItemsAddEdit
} }
], ]
linkActiveClass: 'active'
}) })

View File

@ -53,6 +53,7 @@ func ListBooks(searchterm string) (books []*Book, err error) {
for _, pub := range pubs { for _, pub := range pubs {
if pub.ID == book.PublisherID { if pub.ID == book.PublisherID {
books[i].Publisher = pub books[i].Publisher = pub
break // Take the first quantity you find and exit
} }
} }