From dd48ae77782ac78b623debc975903b9703af0fa9 Mon Sep 17 00:00:00 2001 From: Jixun Wu Date: Sat, 10 Jun 2023 17:54:06 +0100 Subject: [PATCH] fix: reword footer to fit single line in mobile device (close #22) --- src/__tests__/sanity-check.test.tsx | 2 +- src/components/Footer.tsx | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/__tests__/sanity-check.test.tsx b/src/__tests__/sanity-check.test.tsx index bebac59..ffa2782 100644 --- a/src/__tests__/sanity-check.test.tsx +++ b/src/__tests__/sanity-check.test.tsx @@ -16,6 +16,6 @@ test('should be able to render App', async () => { await waitFor(() => screen.getByTestId('sdk-version')); // Quick sanity check of known strings. - expect(screen.getByText(/仅在浏览器内对文件进行解锁/i)).toBeInTheDocument(); + expect(screen.getByText(/在浏览器内对文件进行解锁/i)).toBeInTheDocument(); expect(screen.getByText(/UnlockMusic 团队/i)).toBeInTheDocument(); }); diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 4aa0f55..c551375 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -20,23 +20,25 @@ export function Footer() { flexShrink={0} > - {'音乐解锁 (__APP_VERSION_SHORT__'} + + 音乐解锁 + + {' (__APP_VERSION_SHORT__'} {') - 移除已购音乐的加密保护。'} - {'Copyright © 2019 - '} + {'© 2019 - '} {' '} UnlockMusic 团队 - {' | 音乐解锁授权基于'} + {' | '} - MIT许可协议 + 使用 MIT 授权协议 - 。 );