From fe608889d8812cade9150a58d019b75d7eb7dd3f Mon Sep 17 00:00:00 2001
From: Dreamacro <305009791@qq.com>
Date: Sat, 6 Jun 2020 23:59:56 +0800
Subject: [PATCH] Fix: display count on rule provider
---
src/components/Tag/style.scss | 1 +
src/containers/Rules/Provider/index.tsx | 3 ++-
src/containers/Rules/Provider/style.scss | 3 ++-
src/i18n/en_US.ts | 3 ++-
src/i18n/zh_CN.ts | 3 ++-
5 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/components/Tag/style.scss b/src/components/Tag/style.scss
index b2f32d7..fdfe59a 100644
--- a/src/components/Tag/style.scss
+++ b/src/components/Tag/style.scss
@@ -3,6 +3,7 @@
.tag {
display: flex;
align-items: center;
+ justify-content: center;
height: 24px;
font-size: 12px;
padding: 0 12px;
diff --git a/src/containers/Rules/Provider/index.tsx b/src/containers/Rules/Provider/index.tsx
index b4447cf..ed210f0 100644
--- a/src/containers/Rules/Provider/index.tsx
+++ b/src/containers/Rules/Provider/index.tsx
@@ -16,7 +16,7 @@ export function Provider (props: ProvidersProps) {
const { useTranslation, lang } = useI18n()
const { provider } = props
- const { t } = useTranslation('Proxies')
+ const { t } = useTranslation('Rules')
const { visible, hide, show } = useVisible()
@@ -34,6 +34,7 @@ export function Provider (props: ProvidersProps) {
{ provider.name }