diff --git a/package.json b/package.json index de36859..0914ddd 100644 --- a/package.json +++ b/package.json @@ -109,6 +109,7 @@ "precommit": "lint-staged", "add-locale": "lingui add-locale", "extract": "lingui extract", + "trans": "lingui extract --clean && node ./scripts/translate.js", "doc": "docsify serve docs" } } diff --git a/src/layouts/PrimaryLayout.less b/src/layouts/PrimaryLayout.less index 4d297ee..56af53f 100644 --- a/src/layouts/PrimaryLayout.less +++ b/src/layouts/PrimaryLayout.less @@ -34,8 +34,6 @@ .container { height: 100vh; - overflow-x: hidden; - overflow-y: scroll; flex: 1; } diff --git a/src/locales/en/messages.json b/src/locales/en/messages.json index a571cf6..7e3afc3 100644 --- a/src/locales/en/messages.json +++ b/src/locales/en/messages.json @@ -2,7 +2,6 @@ "/dashboard": "/dashboard", "Clear notifications": "Clear notifications", "Dark": "Dark", - "Dashboard": "Dashboard", "Hi,": "Hi,", "Light": "Light", "Not Found": "Not Found", @@ -12,4 +11,4 @@ "Switch Theme": "Switch Theme", "Username": "Username", "You have viewed all notifications.": "You have viewed all notifications." -} +} \ No newline at end of file diff --git a/src/locales/zh/messages.json b/src/locales/zh/messages.json index 8d8710e..610646a 100644 --- a/src/locales/zh/messages.json +++ b/src/locales/zh/messages.json @@ -2,7 +2,6 @@ "/dashboard": "/zh/dashboard", "Clear notifications": "清空消息", "Dark": "暗", - "Dashboard": "仪表盘", "Hi,": "你好,", "Light": "明", "Not Found": "未找到", diff --git a/src/themes/index.less b/src/themes/index.less index 625639c..5373f9a 100644 --- a/src/themes/index.less +++ b/src/themes/index.less @@ -6,6 +6,15 @@ body { background-color: #f8f8f8; } +::-webkit-scrollbar-thumb { + background-color: #e6e6e6; +} + +::-webkit-scrollbar { + width: 8px; + height: 8px; +} + :global { .ant-breadcrumb { & > span {