From 9119193341492afc425e4610fe2a6e9debf899d2 Mon Sep 17 00:00:00 2001 From: emeric Date: Mon, 9 May 2022 21:03:19 +0200 Subject: [PATCH] Still converting to bootstrap 5. Minor style fix --- approot/releases.xml | 2 +- src/lms/ui/LmsApplication.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/approot/releases.xml b/approot/releases.xml index 55e4f6ba..427eeb19 100644 --- a/approot/releases.xml +++ b/approot/releases.xml @@ -43,7 +43,7 @@ ${cover class="shadow-sm"} ${release-name class="text-truncate text-nowrap text-decoration-none link-success"} ${}${artist-name class=" text-truncate text-nowrap text-decoration-none link-secondary"}${} - ${}
${tr:Lms.Explore.various-artists}
${
} + ${}
${tr:Lms.Explore.various-artists}
${
} ${}
${year}
${
} diff --git a/src/lms/ui/LmsApplication.cpp b/src/lms/ui/LmsApplication.cpp index ed9e437b..51e92b4f 100644 --- a/src/lms/ui/LmsApplication.cpp +++ b/src/lms/ui/LmsApplication.cpp @@ -396,8 +396,7 @@ handlePathChange(Wt::WStackedWidget& stack, bool isAdmin) LMS_LOG(UI, DEBUG) << "Internal path changed to '" << wApp->internalPath() << "'"; - LmsApp->doJavaScript(R"($('.navbar-nav li.active').removeClass('active'); $('.navbar-nav a[href="' + location.pathname + '"]').closest('li').addClass('active');)"); - + LmsApp->doJavaScript(R"($('.navbar-nav a.active').removeClass('active'); $('.navbar-nav a[href="' + location.pathname + '"]').closest('a').addClass('active');)"); for (const auto& view : views) { if (wApp->internalPathMatches(view.path))