Skip to content

Commit d52a735

Browse files
committed
Add the gt-hidden style in order to fix go-gitea#22845
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 29529fa commit d52a735

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

templates/base/head_navbar.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<a href="{{AppSubUrl}}/notifications" class="tooltip mobile-only gt-mr-4 gt-mt-3" data-content="{{.locale.Tr "notifications"}}" aria-label="{{.locale.Tr "notifications"}}">
1313
<span class="fitted item">
1414
{{svg "octicon-bell"}}
15-
<span class="notification_count{{if not $notificationUnreadCount}} hidden{{end}}">
15+
<span class="notification_count{{if not $notificationUnreadCount}} gt-hidden{{end}}">
1616
{{$notificationUnreadCount}}
1717
</span>
1818
</span>
@@ -80,7 +80,7 @@
8080
{{else if .IsSigned}}
8181
<div class="right stackable menu">
8282
{{if EnableTimetracking}}
83-
<a class="active-stopwatch-trigger item ui gt-mx-0{{if not .ActiveStopwatch}} hidden{{end}}" href="{{.ActiveStopwatch.IssueLink}}">
83+
<a class="active-stopwatch-trigger item ui gt-mx-0{{if not .ActiveStopwatch}} gt-hidden{{end}}" href="{{.ActiveStopwatch.IssueLink}}">
8484
<span class="fitted gt-relative">
8585
{{svg "octicon-stopwatch"}}
8686
<span class="header-stopwatch-dot"></span>

web_src/less/helpers.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
/* below class names match Tailwind CSS */
2323
.gt-pointer-events-none { pointer-events: none !important; }
2424
.gt-relative { position: relative !important; }
25+
.gt-hidden { display: none !important; }
2526

2627
.gt-mono {
2728
font-family: var(--fonts-monospace) !important;

0 commit comments

Comments
 (0)