From 200389b6782274f4e6c91f458db2160245596d33 Mon Sep 17 00:00:00 2001 From: Yogi_Wang Date: Tue, 28 May 2019 15:16:57 +0800 Subject: [PATCH] Fix bug when we use language with pt-br; change the harbor version from 1.7.x to 1.8 fix bug when we use language with pt-br; change the harbor version from 1.7.x to 1.8 Signed-off-by: Yogi_Wang --- src/portal/lib/package.json | 2 +- src/portal/package-lock.json | 2 +- src/portal/package.json | 2 +- src/portal/src/app/app.module.ts | 2 ++ src/portal/src/app/base/navigator/navigator.component.scss | 3 ++- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/portal/lib/package.json b/src/portal/lib/package.json index 798ad052f..4804668db 100644 --- a/src/portal/lib/package.json +++ b/src/portal/lib/package.json @@ -1,6 +1,6 @@ { "name": "@harbor/ui", - "version": "1.7.4-rc2", + "version": "1.8.0-rc2", "description": "Harbor shared UI components based on Clarity and Angular7", "author": "CNCF", "module": "index.js", diff --git a/src/portal/package-lock.json b/src/portal/package-lock.json index 706eb94d4..c0e61a87f 100644 --- a/src/portal/package-lock.json +++ b/src/portal/package-lock.json @@ -1,6 +1,6 @@ { "name": "harbor", - "version": "1.7.1", + "version": "1.8.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/portal/package.json b/src/portal/package.json index cd62c2350..9c9dd34eb 100644 --- a/src/portal/package.json +++ b/src/portal/package.json @@ -1,6 +1,6 @@ { "name": "harbor", - "version": "1.7.1", + "version": "1.8.0", "description": "Harbor UI with Clarity", "angular-cli": {}, "scripts": { diff --git a/src/portal/src/app/app.module.ts b/src/portal/src/app/app.module.ts index d3a0ec54e..2cd122d1b 100644 --- a/src/portal/src/app/app.module.ts +++ b/src/portal/src/app/app.module.ts @@ -32,6 +32,7 @@ import { ProjectConfigComponent } from './project/project-config/project-config. import zh from '@angular/common/locales/zh-Hans'; import es from '@angular/common/locales/es'; import localeFr from '@angular/common/locales/fr'; +import localePt from '@angular/common/locales/pt-PT'; import { DevCenterComponent } from './dev-center/dev-center.component'; import { VulnerabilityPageComponent } from './vulnerability-page/vulnerability-page.component'; import { GcPageComponent } from './gc-page/gc-page.component'; @@ -39,6 +40,7 @@ import { OidcOnboardModule } from './oidc-onboard/oidc-onboard.module'; registerLocaleData(zh, 'zh-cn'); registerLocaleData(es, 'es-es'); registerLocaleData(localeFr, 'fr-fr'); +registerLocaleData(localePt, 'pt-br'); export function initConfig(configService: AppConfigService, skinableService: SkinableConfig) { diff --git a/src/portal/src/app/base/navigator/navigator.component.scss b/src/portal/src/app/base/navigator/navigator.component.scss index 3b3470f8d..00890a6ee 100644 --- a/src/portal/src/app/base/navigator/navigator.component.scss +++ b/src/portal/src/app/base/navigator/navigator.component.scss @@ -41,7 +41,8 @@ } .nav-icon-width { - width: 98px !important; + width: auto !important; + padding-left: 18px !important; .icon-left { left: -8px; }