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

This commit is contained in:
鲁树人 2023-06-10 17:54:06 +01:00
parent 4b9440ffc1
commit d73a51a931
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')); await waitFor(() => screen.getByTestId('sdk-version'));
// Quick sanity check of known strings. // Quick sanity check of known strings.
expect(screen.getByText(/在浏览器内对文件进行解锁/i)).toBeInTheDocument(); expect(screen.getByText(/在浏览器内对文件进行解锁/i)).toBeInTheDocument();
expect(screen.getByText(/UnlockMusic 团队/i)).toBeInTheDocument(); expect(screen.getByText(/UnlockMusic 团队/i)).toBeInTheDocument();
}); });

View File

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