Skip to content

Commit cadfbad

Browse files
committed
Optimized the button styles on the right side of the top navigation bar
1 parent f9c54b8 commit cadfbad

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

templates/base/head_navbar.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@
122122
</div><!-- end dropdown menu create new -->
123123

124124
<div class="ui dropdown jump item tw-mx-0 tw-pr-2" data-tooltip-content="{{ctx.Locale.Tr "user_profile_and_more"}}">
125-
<span class="text tw-flex tw-items-center">
125+
{{ctx.AvatarUtils.Avatar .SignedUser 36 "not-mobile"}}
126+
<span class="text tw-flex tw-items-center only-mobile">
126127
{{ctx.AvatarUtils.Avatar .SignedUser 24 "tw-mr-1"}}
127128
<span class="only-mobile tw-ml-2">{{.SignedUser.Name}}</span>
128-
<span class="not-mobile">{{svg "octicon-triangle-down"}}</span>
129129
</span>
130130
<div class="menu user-menu">
131131
<div class="ui header">

web_src/css/modules/navbar.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@
3939
border-radius: .28571429rem;
4040
}
4141

42+
@media (min-width: 768px) {
43+
44+
.navbar-right > .item:not(:has(.ui.avatar)) {
45+
border: 1px solid;
46+
border-color: var(--color-secondary);
47+
}
48+
49+
.navbar-right > .item:has(.ui.avatar) {
50+
padding: 0!important;
51+
}
52+
53+
}
54+
4255
#navbar .item {
4356
min-height: 36px;
4457
min-width: 36px;

0 commit comments

Comments
 (0)