Skip to content

Commit 8cda574

Browse files
committed
use only-mobile
1 parent 6a67be9 commit 8cda574

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

templates/base/head_navbar.tmpl

Lines changed: 5 additions & 5 deletions
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 mobile-only">
14+
<div class="ui secondary menu item navbar-mobile-right only-mobile">
1515
{{if .IsSigned}}
1616
<a id="mobile-notifications-icon" class="item tw-w-auto gt-p-3" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{ctx.Locale.Tr "notifications"}}" aria-label="{{ctx.Locale.Tr "notifications"}}">
1717
<div class="tw-relative">
@@ -58,7 +58,7 @@
5858
<div class="ui dropdown jump item" data-tooltip-content="{{ctx.Locale.Tr "user_profile_and_more"}}">
5959
<span class="text gt-df gt-ac">
6060
{{ctx.AvatarUtils.Avatar .SignedUser 24 "gt-mr-2"}}
61-
<span class="mobile-only gt-ml-3">{{.SignedUser.Name}}</span>
61+
<span class="only-mobile gt-ml-3">{{.SignedUser.Name}}</span>
6262
<span class="not-mobile">{{svg "octicon-triangle-down"}}</span>
6363
</span>
6464
<div class="menu user-menu">
@@ -80,7 +80,7 @@
8080
{{svg "octicon-stopwatch"}}
8181
<span class="header-stopwatch-dot"></span>
8282
</div>
83-
<span class="mobile-only gt-ml-3">{{ctx.Locale.Tr "active_stopwatch"}}</span>
83+
<span class="only-mobile gt-ml-3">{{ctx.Locale.Tr "active_stopwatch"}}</span>
8484
</a>
8585
<div class="active-stopwatch-popup item tippy-target gt-p-3">
8686
<div class="gt-df gt-ac">
@@ -122,7 +122,7 @@
122122
<span class="text">
123123
{{svg "octicon-plus"}}
124124
<span class="not-mobile">{{svg "octicon-triangle-down"}}</span>
125-
<span class="mobile-only">{{ctx.Locale.Tr "create_new"}}</span>
125+
<span class="only-mobile">{{ctx.Locale.Tr "create_new"}}</span>
126126
</span>
127127
<div class="menu">
128128
<a class="item" href="{{AppSubUrl}}/repo/create">
@@ -144,7 +144,7 @@
144144
<div class="ui dropdown jump item gt-mx-0 gt-pr-3" data-tooltip-content="{{ctx.Locale.Tr "user_profile_and_more"}}">
145145
<span class="text gt-df gt-ac">
146146
{{ctx.AvatarUtils.Avatar .SignedUser 24 "gt-mr-2"}}
147-
<span class="mobile-only gt-ml-3">{{.SignedUser.Name}}</span>
147+
<span class="only-mobile gt-ml-3">{{.SignedUser.Name}}</span>
148148
<span class="not-mobile">{{svg "octicon-triangle-down"}}</span>
149149
</span>
150150
<div class="menu user-menu">

templates/repo/header.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
<div class="flex-item-trailing">
1515
{{if .IsArchived}}
1616
<span class="ui basic label not-mobile">{{ctx.Locale.Tr "repo.desc.archived"}}</span>
17-
<div class="repo-icon mobile-only" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.archived"}}">{{svg "octicon-archive" 18}}</div>
17+
<div class="repo-icon only-mobile" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.archived"}}">{{svg "octicon-archive" 18}}</div>
1818
{{end}}
1919
{{if .IsPrivate}}
2020
<span class="ui basic label not-mobile">{{ctx.Locale.Tr "repo.desc.private"}}</span>
21-
<div class="repo-icon mobile-only" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.private"}}">{{svg "octicon-lock" 18}}</div>
21+
<div class="repo-icon only-mobile" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.private"}}">{{svg "octicon-lock" 18}}</div>
2222
{{else}}
2323
{{if .Owner.Visibility.IsPrivate}}
2424
<span class="ui basic label not-mobile">{{ctx.Locale.Tr "repo.desc.internal"}}</span>
25-
<div class="repo-icon mobile-only" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.internal"}}">{{svg "octicon-shield-lock" 18}}</div>
25+
<div class="repo-icon only-mobile" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.internal"}}">{{svg "octicon-shield-lock" 18}}</div>
2626
{{end}}
2727
{{end}}
2828
{{if .IsTemplate}}
2929
<span class="ui basic label not-mobile">{{ctx.Locale.Tr "repo.desc.template"}}</span>
30-
<div class="repo-icon mobile-only" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.template"}}">{{svg "octicon-repo-template" 18}}</div>
30+
<div class="repo-icon only-mobile" data-tooltip-content="{{ctx.Locale.Tr "repo.desc.template"}}">{{svg "octicon-repo-template" 18}}</div>
3131
{{end}}
3232
{{if eq .ObjectFormatName "sha256"}}
3333
<span class="ui basic label">{{ctx.Locale.Tr "repo.desc.sha256"}}</span>

web_src/css/helpers.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ only use:
207207
}
208208
}
209209
@media (min-width: 767.98px) {
210-
.mobile-only.mobile-only {
210+
.only-mobile.only-mobile {
211211
display: none !important;
212212
}
213213
}

0 commit comments

Comments
 (0)