From 1a3e8ebb81fa135873f20948f3c10b31c12e981b Mon Sep 17 00:00:00 2001 From: Yogi_Wang Date: Fri, 22 Nov 2019 15:06:21 +0800 Subject: [PATCH] Modify the style of language and modify variable name Signed-off-by: Yogi_Wang --- .../app/base/harbor-shell/harbor-shell.component.html | 2 +- .../src/app/base/navigator/navigator.component.html | 4 ++-- .../src/app/base/navigator/navigator.component.scss | 11 ++++++++--- .../src/app/base/navigator/navigator.component.ts | 6 +++--- src/portal/src/app/sign-in/sign-in.component.html | 2 +- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/portal/src/app/base/harbor-shell/harbor-shell.component.html b/src/portal/src/app/base/harbor-shell/harbor-shell.component.html index 7ba9ecbf2..bbc1bfb77 100644 --- a/src/portal/src/app/base/harbor-shell/harbor-shell.component.html +++ b/src/portal/src/app/base/harbor-shell/harbor-shell.component.html @@ -1,6 +1,6 @@ - +
- +
diff --git a/src/portal/src/app/base/navigator/navigator.component.scss b/src/portal/src/app/base/navigator/navigator.component.scss index 491289d78..7a2624c3b 100644 --- a/src/portal/src/app/base/navigator/navigator.component.scss +++ b/src/portal/src/app/base/navigator/navigator.component.scss @@ -31,8 +31,10 @@ } .nav-about-link { - padding-left: 12px !important; - padding-right: 12px !important; + padding-left: 1.6rem !important; + padding-right: 1rem !important; + min-width: 125px; + text-align: left !important; } .harbor-logo { @@ -47,7 +49,7 @@ left: -8px; } .currentLang { - padding-right: 8px; + padding-right: 30px; } } @@ -62,4 +64,7 @@ } .dropdown-item { outline: none; +} +.dropdown-lang { + padding-right: 1.3rem; } \ No newline at end of file diff --git a/src/portal/src/app/base/navigator/navigator.component.ts b/src/portal/src/app/base/navigator/navigator.component.ts index 2bcc194b1..1b23c5fdd 100644 --- a/src/portal/src/app/base/navigator/navigator.component.ts +++ b/src/portal/src/app/base/navigator/navigator.component.ts @@ -38,7 +38,7 @@ import { SkinableConfig } from "../../skinable-config.service"; export class NavigatorComponent implements OnInit { // constructor(private router: Router){} @Output() showAccountSettingsModal = new EventEmitter(); - @Output() showPwdChangeModal = new EventEmitter(); + @Output() showDialogModalAction = new EventEmitter(); selectedLang: string = enLang; appTitle: string = 'APP_TITLE.HARBOR'; @@ -132,7 +132,7 @@ export class NavigatorComponent implements OnInit { // Open change password dialog openChangePwdModal(): void { - this.showPwdChangeModal.emit({ + this.showDialogModalAction.emit({ modalName: modalEvents.CHANGE_PWD, modalFlag: true }); @@ -140,7 +140,7 @@ export class NavigatorComponent implements OnInit { // Open about dialog openAboutDialog(): void { - this.showPwdChangeModal.emit({ + this.showDialogModalAction.emit({ modalName: modalEvents.ABOUT, modalFlag: true }); diff --git a/src/portal/src/app/sign-in/sign-in.component.html b/src/portal/src/app/sign-in/sign-in.component.html index 58413c95b..10134f794 100644 --- a/src/portal/src/app/sign-in/sign-in.component.html +++ b/src/portal/src/app/sign-in/sign-in.component.html @@ -1,6 +1,6 @@ - +