Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
744c0166
Commit
744c0166
authored
Aug 20, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
4b1b4251
80c57bf6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
app/assets/stylesheets/framework/header.scss
app/assets/stylesheets/framework/header.scss
+0
-2
app/views/layouts/header/_default.html.haml
app/views/layouts/header/_default.html.haml
+4
-3
changelogs/unreleased/remove-margin-from-user-header.yml
changelogs/unreleased/remove-margin-from-user-header.yml
+5
-0
No files found.
app/assets/stylesheets/framework/header.scss
View file @
744c0166
...
...
@@ -131,7 +131,6 @@
>
li
:not
(
.d-none
)
a
{
@include
media-breakpoint-down
(
xs
)
{
margin-left
:
0
;
min-width
:
100%
;
}
}
}
...
...
@@ -233,7 +232,6 @@
.impersonation-btn
,
.impersonation-btn
:hover
{
background-color
:
$white-light
;
margin-left
:
0
;
border-top-left-radius
:
0
;
border-bottom-left-radius
:
0
;
...
...
app/views/layouts/header/_default.html.haml
View file @
744c0166
...
...
@@ -4,6 +4,7 @@
-
search_path_url
=
search_path
(
group_id:
group
.
id
)
-
else
-
search_path_url
=
search_path
-
has_impersonation_link
=
header_link?
(
:admin_impersonation
)
%header
.navbar.navbar-gitlab.navbar-expand-sm.js-navbar
{
data:
{
qa_selector:
'navbar'
}
}
%a
.sr-only.gl-accessibility
{
href:
"#content-body"
,
tabindex:
"1"
}
Skip to content
...
...
@@ -64,14 +65,14 @@
.dropdown-menu.dropdown-menu-right
=
render
'layouts/header/help_dropdown'
-
if
header_link?
(
:user_dropdown
)
%li
.nav-item.header-user.dropdown
{
data:
{
track_label:
"profile_dropdown"
,
track_event:
"click_dropdown"
,
track_value:
""
,
qa_selector:
'user_menu'
}
}
%li
.nav-item.header-user.dropdown
{
data:
{
track_label:
"profile_dropdown"
,
track_event:
"click_dropdown"
,
track_value:
""
,
qa_selector:
'user_menu'
}
,
class:
(
'mr-0'
if
has_impersonation_link
)
}
=
link_to
current_user
,
class:
user_dropdown_class
,
data:
{
toggle:
"dropdown"
}
do
=
image_tag
avatar_icon_for_user
(
current_user
,
23
),
width:
23
,
height:
23
,
class:
"header-user-avatar qa-user-avatar"
=
sprite_icon
(
'angle-down'
,
css_class:
'caret-down'
)
.dropdown-menu.dropdown-menu-right
=
render
'layouts/header/current_user_dropdown'
-
if
h
eader_link?
(
:admin_impersonation
)
%li
.nav-item.impersonation
-
if
h
as_impersonation_link
%li
.nav-item.impersonation
.ml-0
=
link_to
admin_impersonation_path
,
class:
'nav-link impersonation-btn'
,
method: :delete
,
title:
_
(
'Stop impersonation'
),
aria:
{
label:
_
(
'Stop impersonation'
)
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'user-secret'
)
-
if
header_link?
(
:sign_in
)
...
...
changelogs/unreleased/remove-margin-from-user-header.yml
0 → 100644
View file @
744c0166
---
title
:
Remove margin from user header
merge_request
:
30878
author
:
lucyfox
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment