Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rights Engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Polaris
Rights Engine
Commits
a9d52807
Commit
a9d52807
authored
2 months ago
by
Benjamin Ledel
Browse files
Options
Downloads
Patches
Plain Diff
* adjust dropdown menu
parent
6ca8f9f6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/frontend/src/app/navigation/header/header.component.html
+40
-21
40 additions, 21 deletions
src/frontend/src/app/navigation/header/header.component.html
src/frontend/src/app/navigation/header/header.component.scss
+17
-0
17 additions, 0 deletions
src/frontend/src/app/navigation/header/header.component.scss
with
57 additions
and
21 deletions
src/frontend/src/app/navigation/header/header.component.html
+
40
−
21
View file @
a9d52807
...
@@ -79,37 +79,56 @@
...
@@ -79,37 +79,56 @@
<button
nz-button
*ngIf=
"!loggedIn"
(click)=
"handleSSOClick()"
>
Single Sign-On (SSO)
</button>
<button
nz-button
*ngIf=
"!loggedIn"
(click)=
"handleSSOClick()"
>
Single Sign-On (SSO)
</button>
<div
*ngIf=
"loggedIn"
class=
"login-info"
>
<div
*ngIf=
"loggedIn"
class=
"login-info"
>
<a
nz-dropdown
[nzDropdownMenu]=
"menu"
nzTrigger=
"click"
>
{{ loggedIn.email }}
</a>
<a
nz-dropdown
[nzDropdownMenu]=
"menu"
class=
"user-email"
>
{{ loggedIn.email }}
<i
nz-icon
nzType=
"down"
nzTheme=
"outline"
></i>
</a>
<nz-dropdown-menu
#menu
="
nzDropdownMenu
"
>
<nz-dropdown-menu
#menu
="
nzDropdownMenu
"
>
<ul
nz-menu
>
<ul
nz-menu
>
<li
nz-menu-item
routerLink=
"/profil"
>
<li
nz-menu-item
routerLink=
"/profil"
>
<fa-icon
[icon]=
"faUser"
></fa-icon>
<span
class=
"menu-item"
>
<span
i18n=
"Profile | Header profile dropdown entry @@profileProfileDropDown"
<fa-icon
[icon]=
"faUser"
class=
"menu-icon"
></fa-icon>
>
Profile
</span>
<span
class=
"menu-text"
i18n=
"Profile | Header profile dropdown entry @@profileProfileDropDown"
>
Profile
</span>
</span>
</li>
</li>
<li
nz-menu-item
routerLink=
"/data-disclosure"
*ngIf=
"environment.pageVisibility.data_disclosure && !loggedIn?.isProvider"
>
<fa-icon
[icon]=
"faDownload"
></fa-icon>
<li
nz-menu-item
<span
routerLink=
"/data-disclosure"
i18n=
"
*ngIf=
"environment.pageVisibility.data_disclosure && !loggedIn?.isProvider"
>
Data disclosure | Header profile dropdown entry
<span
class=
"menu-item"
>
@@dataDisclosureProfileDropDown"
<fa-icon
[icon]=
"faDownload"
class=
"menu-icon"
></fa-icon>
>
Data disclosure
</span>
<span
class=
"menu-text"
i18n=
"Data disclosure | Header profile dropdown entry @@dataDisclosureProfileDropDown"
>
Data disclosure
</span>
</span>
</li>
</li>
<li
nz-menu-item
routerLink=
"/data-removal"
*ngIf=
"!loggedIn?.isProvider"
>
<li
nz-menu-item
routerLink=
"/data-removal"
*ngIf=
"!loggedIn?.isProvider"
>
<fa-icon
[icon]=
"faTrash"
></fa-icon>
<span
class=
"menu-item"
>
<span
<fa-icon
[icon]=
"faTrash"
class=
"menu-icon"
></fa-icon>
i18n=
"Data removal | Header profile dropdown entry @@dataRemovalProfileDropDown"
<span
class=
"menu-text"
>
Data removal
</span>
i18n=
"Data removal | Header profile dropdown entry @@dataRemovalProfileDropDown"
>
Data removal
</span>
</span>
</li>
</li>
<li
nz-menu-item
(click)=
"logout()"
>
<li
nz-menu-item
(click)=
"logout()"
>
<fa-icon
[icon]=
"faSignOutAlt"
></fa-icon>
<span
class=
"menu-item"
>
<span
i18n=
"Logout | Header profile dropdown entry @@logoutProfileDropDown"
<fa-icon
[icon]=
"faSignOutAlt"
class=
"menu-icon"
></fa-icon>
>
Logout
</span>
<span
class=
"menu-text"
i18n=
"Logout | Header profile dropdown entry @@logoutProfileDropDown"
>
Logout
</span>
</span>
</li>
</li>
</ul>
</ul>
</nz-dropdown-menu>
</nz-dropdown-menu>
</div>
</div>
</div>
</div>
</nz-header>
</nz-header>
This diff is collapsed.
Click to expand it.
src/frontend/src/app/navigation/header/header.component.scss
+
17
−
0
View file @
a9d52807
...
@@ -20,3 +20,20 @@ nz-header {
...
@@ -20,3 +20,20 @@ nz-header {
background
:
#FFF
;
background
:
#FFF
;
display
:
flex
;
display
:
flex
;
}
}
.menu-item
{
display
:
flex
;
align-items
:
center
;
padding
:
8px
12px
;
gap
:
12px
;
// Adds space between icon and text
}
.menu-icon
{
font-size
:
18px
;
color
:
#595959
;
min-width
:
22px
;
// Ensures consistent spacing
}
.menu-text
{
font-size
:
14px
;
font-weight
:
500
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment