From 11367318a1d3c9d2ae739121fe3bcdf0e8c47541 Mon Sep 17 00:00:00 2001 From: Fine Date: Mon, 27 Mar 2023 21:03:34 +0800 Subject: [PATCH] fix: update menu --- src/layout/components/SideBar.vue | 2 +- src/locales/lang/en.ts | 3 ++- src/locales/lang/es.ts | 3 ++- src/locales/lang/zh.ts | 3 ++- src/router/data/aws.ts | 10 +++++----- src/styles/reset.scss | 2 +- 6 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/layout/components/SideBar.vue b/src/layout/components/SideBar.vue index ad69fd26..9336687a 100644 --- a/src/layout/components/SideBar.vue +++ b/src/layout/components/SideBar.vue @@ -184,7 +184,7 @@ limitations under the License. --> .title { display: inline-block; - max-width: 110px; + max-width: 200px; text-overflow: ellipsis; overflow: hidden; } diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 8a2c922f..a27fb707 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -382,6 +382,7 @@ const msg = { AWSCloudEKS: "EKS", AWSCloudS3: "S3", AWSCloudDynamoDB: "DynamoDB", - AWSGateway: "AWS Gateway", + AWSGateway: "AWS API Gateway", + APIGateway: "API Gateway", }; export default msg; diff --git a/src/locales/lang/es.ts b/src/locales/lang/es.ts index a0f79122..6d250bad 100644 --- a/src/locales/lang/es.ts +++ b/src/locales/lang/es.ts @@ -381,6 +381,7 @@ const msg = { AWSCloudEKS: "EKS", AWSCloudS3: "S3", AWSCloudDynamoDB: "DynamoDB", - AWSGateway: "AWS Gateway", + AWSGateway: "AWS API Gateway", + APIGateway: "API Gateway", }; export default msg; diff --git a/src/locales/lang/zh.ts b/src/locales/lang/zh.ts index e574656c..8fa4cb3a 100644 --- a/src/locales/lang/zh.ts +++ b/src/locales/lang/zh.ts @@ -379,6 +379,7 @@ const msg = { AWSCloudEKS: "EKS", AWSCloudS3: "S3", AWSCloudDynamoDB: "DynamoDB", - AWSGateway: "AWS Gateway", + AWSGateway: "AWS API Gateway", + APIGateway: "API Gateway", }; export default msg; diff --git a/src/router/data/aws.ts b/src/router/data/aws.ts index eb632ae1..47f782d7 100644 --- a/src/router/data/aws.ts +++ b/src/router/data/aws.ts @@ -75,16 +75,16 @@ export default [ }, }, { - path: "/aws-gateway", - name: "AWSGateway", + path: "/aws-api-gateway", + name: "APIGateway", meta: { - title: "AWSGateway", + title: "APIGateway", layer: "AWS_GATEWAY", }, }, { - path: "/aws-gateway/tab/:activeTabIndex", - name: "GatewayActiveTabIndex", + path: "/aws-api-gateway/tab/:activeTabIndex", + name: "APIGatewayActiveTabIndex", meta: { notShow: true, layer: "AWS_GATEWAY", diff --git a/src/styles/reset.scss b/src/styles/reset.scss index 785e7c59..7187b779 100644 --- a/src/styles/reset.scss +++ b/src/styles/reset.scss @@ -135,7 +135,7 @@ pre { .el-sub-menu .el-menu-item { height: 40px; line-height: 40px; - padding-left: 56px !important; + padding: 0 0 0 56px !important; } .el-sub-menu__title {