Skip to content

Commit 9e3143e

Browse files
committed
backport #33108 (fix mobile view)
1 parent cb06f62 commit 9e3143e

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

Diff for: templates/base/head_navbar.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
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="ui secondary menu 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">
@@ -70,7 +70,7 @@
7070
<span class="not-mobile">{{svg "octicon-triangle-down"}}</span>
7171
</span>
7272
<div class="menu user-menu">
73-
<div class="ui header">
73+
<div class="header">
7474
{{ctx.Locale.Tr "signed_in_as"}} <strong>{{.SignedUser.Name}}</strong>
7575
</div>
7676

@@ -128,7 +128,7 @@
128128
<span class="not-mobile">{{svg "octicon-triangle-down"}}</span>
129129
</span>
130130
<div class="menu user-menu">
131-
<div class="ui header">
131+
<div class="header">
132132
{{ctx.Locale.Tr "signed_in_as"}} <strong>{{.SignedUser.Name}}</strong>
133133
</div>
134134

Diff for: templates/repo/commit_page.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{{ctx.Locale.Tr "repo.commit.operations"}}
3131
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
3232
<div class="menu">
33-
<div class="ui header">{{ctx.Locale.Tr "repo.commit.operations"}}</div>
33+
<div class="header">{{ctx.Locale.Tr "repo.commit.operations"}}</div>
3434
<div class="divider"></div>
3535
<div class="item show-create-branch-modal"
3636
data-content="{{ctx.Locale.Tr "repo.branch.new_branch_from" (.CommitID)}}" {{/* used by the form */}}

Diff for: templates/user/dashboard/navbar.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{{svg "octicon-triangle-down" 14 "dropdown icon tw-ml-1"}}
1313
</span>
1414
<div class="context user overflow menu">
15-
<div class="ui header">
15+
<div class="header">
1616
{{ctx.Locale.Tr "home.switch_dashboard_context"}}
1717
</div>
1818
<div class="scrolling menu items">
@@ -56,7 +56,7 @@
5656
</span>
5757
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
5858
<div class="context user overflow menu">
59-
<div class="ui header">
59+
<div class="header">
6060
{{ctx.Locale.Tr "home.filter_by_team_repositories"}}
6161
</div>
6262
<div class="scrolling menu items">

Diff for: web_src/css/modules/navbar.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@
6666
align-items: stretch;
6767
}
6868
/* hide all items */
69-
#navbar .item {
69+
#navbar .navbar-left > .item,
70+
#navbar .navbar-right > .item {
7071
display: none;
7172
}
7273
#navbar #navbar-logo {

0 commit comments

Comments
 (0)