fix: reword footer to fit single line in mobile device (close #22)

This commit is contained in:
Jixun Wu 2023-06-10 17:54:06 +01:00
parent 6c40f29202
commit dd48ae7778
2 changed files with 8 additions and 6 deletions

View File

@ -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();
});

View File

@ -20,23 +20,25 @@ export function Footer() {
flexShrink={0}
>
<Flex as={Text}>
{'音乐解锁 (__APP_VERSION_SHORT__'}
<Link href="https://git.unlock-music.dev/um/um-react" isExternal>
</Link>
{' (__APP_VERSION_SHORT__'}
<Suspense>
<SDKVersion />
</Suspense>
{') - 移除已购音乐的加密保护。'}
</Flex>
<Text>
{'Copyright © 2019 - '}
{'© 2019 - '}
<CurrentYear />{' '}
<Link href="https://git.unlock-music.dev/um" isExternal>
UnlockMusic
</Link>
{' | 音乐解锁授权基于'}
{' | '}
<Link href="https://git.unlock-music.dev/um/um-react/src/branch/main/LICENSE" isExternal>
MIT许可协
使 MIT
</Link>
</Text>
</Center>
);