Skip to content

Commit ce6a21f

Browse files
committed
Merge branch '52299-follow-up-from-resolve-add-status-message-from-within-user-menu' into 'master'
Adjust size and alignment of emojis of user status in user menu Closes #52299 See merge request gitlab-org/gitlab-ce!22194
2 parents 6b70b77 + f8c55c7 commit ce6a21f

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

app/assets/stylesheets/framework/header.scss

+9-6
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,6 @@
530530

531531
.header-user {
532532
&.show .dropdown-menu {
533-
max-height: 323px;
534533
margin-top: 4px;
535534
color: $gl-text-color;
536535
left: auto;
@@ -542,15 +541,19 @@
542541
display: block;
543542
}
544543

545-
.user-status-emoji {
544+
.user-status {
546545
margin-right: 0;
547-
display: block;
548-
vertical-align: text-top;
549546
max-width: 240px;
550-
font-size: 12px;
547+
font-size: $gl-font-size-small;
551548

552549
gl-emoji {
553-
font-size: $gl-font-size;
550+
font-size: $gl-font-size-small;
551+
}
552+
553+
.user-status-emoji {
554+
gl-emoji {
555+
font-size: $gl-font-size;
556+
}
554557
}
555558
}
556559
}

app/assets/stylesheets/framework/variables.scss

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ $well-light-text-color: #5b6169;
194194
* Text
195195
*/
196196
$gl-font-size: 14px;
197+
$gl-font-size-small: 12px;
197198
$gl-font-weight-normal: 400;
198199
$gl-font-weight-bold: 600;
199200
$gl-text-color: #2e2e2e;

app/views/layouts/header/_current_user_dropdown.html.haml

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
= current_user.name
77
= current_user.to_reference
88
- if current_user.status
9-
.user-status-emoji.str-truncated.has-tooltip{ title: current_user.status.message_html, data: { html: 'true', placement: 'bottom' } }
10-
= emoji_icon current_user.status.emoji
11-
= current_user.status.message_html.html_safe
9+
.user-status.d-flex.align-items-center.prepend-top-2.has-tooltip{ title: current_user.status.message_html, data: { html: 'true', placement: 'bottom' } }
10+
%span.user-status-emoji.d-flex.align-items-center
11+
= emoji_icon current_user.status.emoji
12+
%span.user-status-message.str-truncated
13+
= current_user.status.message_html.html_safe
1214
%li.divider
1315
- if can?(current_user, :update_user_status, current_user)
1416
%li
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Fix size of emojis of user status in user menu
3+
merge_request: 22194
4+
author:
5+
type: fixed

0 commit comments

Comments
 (0)