Skip to content

Commit 2679ff1

Browse files
committed
Fix the bug of "active" class not working when navbar links are accessed.
1 parent 300b724 commit 2679ff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/base/head_navbar.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
{{$notificationUnreadCount = call .NotificationUnreadCount}}
44
{{end}}
55

6-
<nav id="navbar" aria-label="{{ctx.Locale.Tr "aria.navbar"}}">
6+
<nav id="navbar" class="ui secondary menu" aria-label="{{ctx.Locale.Tr "aria.navbar"}}">
77
<div class="navbar-left">
88
<!-- the logo -->
99
<a class="item" id="navbar-logo" href="{{AppSubUrl}}/" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}">
1010
<img width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}" aria-hidden="true">
1111
</a>
1212

1313
<!-- mobile right menu, it must be here because in mobile view, each item is a flex column, the first item is a full row column -->
14-
<div class="ui secondary menu item navbar-mobile-right only-mobile">
14+
<div class="item navbar-mobile-right only-mobile">
1515
{{if and .IsSigned EnableTimetracking .ActiveStopwatch}}
1616
<a id="mobile-stopwatch-icon" class="active-stopwatch item tw-mx-0" href="{{.ActiveStopwatch.IssueLink}}" title="{{ctx.Locale.Tr "active_stopwatch"}}" data-seconds="{{.ActiveStopwatch.Seconds}}">
1717
<div class="tw-relative">

0 commit comments

Comments
 (0)