fix: remove Showing... count message (#118)
* fix: remove Showing... count message * Update src/pages/downloads.tsx Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com> * Update src/pages/downloads.tsx Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
This commit is contained in:
parent
1f90789712
commit
e25b87f32d
|
@ -374,26 +374,13 @@ const DownloadsPage: NextPage<Props> = ({ data }) => {
|
||||||
<Flex
|
<Flex
|
||||||
sx={{ mt: '0 !important' }}
|
sx={{ mt: '0 !important' }}
|
||||||
flexDirection={{ base: 'column', md: 'row' }}
|
flexDirection={{ base: 'column', md: 'row' }}
|
||||||
justifyContent='space-between'
|
justifyContent='flex-end'
|
||||||
alignItems='center'
|
alignItems='center'
|
||||||
>
|
>
|
||||||
<Stack p={4} display={{ base: 'none', md: 'block' }} mx='auto'>
|
|
||||||
<Text textStyle='hero-text-small'>
|
|
||||||
{totalStableReleases > 0
|
|
||||||
? `Showing ${Math.min(
|
|
||||||
amountStableReleases,
|
|
||||||
totalStableReleases
|
|
||||||
)} latest releases of
|
|
||||||
a total ${totalStableReleases} releases`
|
|
||||||
: `No releases`}
|
|
||||||
</Text>
|
|
||||||
</Stack>
|
|
||||||
|
|
||||||
{totalStableReleases > amountStableReleases && (
|
{totalStableReleases > amountStableReleases && (
|
||||||
<Stack
|
<Stack
|
||||||
sx={{ mt: '0 !important' }}
|
sx={{ mt: '0 !important' }}
|
||||||
borderLeft={{ base: 'none', md: '2px solid #11866f' }}
|
borderLeft={{ base: 'none', md: '2px solid var(--chakra-colors-primary)' }}
|
||||||
w={{ base: '100%', md: 'auto' }}
|
|
||||||
>
|
>
|
||||||
<Link
|
<Link
|
||||||
as='button'
|
as='button'
|
||||||
|
@ -441,23 +428,13 @@ const DownloadsPage: NextPage<Props> = ({ data }) => {
|
||||||
<Flex
|
<Flex
|
||||||
sx={{ mt: '0 !important' }}
|
sx={{ mt: '0 !important' }}
|
||||||
flexDirection={{ base: 'column', md: 'row' }}
|
flexDirection={{ base: 'column', md: 'row' }}
|
||||||
justifyContent='space-between'
|
justifyContent='flex-end'
|
||||||
alignItems='center'
|
alignItems='center'
|
||||||
>
|
>
|
||||||
<Stack p={4} display={{ base: 'none', md: 'block' }} mx='auto'>
|
|
||||||
<Text textStyle='hero-text-small'>
|
|
||||||
{totalDevBuilds > 0
|
|
||||||
? `Showing ${Math.min(amountDevBuilds, totalDevBuilds)} latest releases of
|
|
||||||
a total ${totalDevBuilds} releases`
|
|
||||||
: `No releases`}
|
|
||||||
</Text>
|
|
||||||
</Stack>
|
|
||||||
|
|
||||||
{totalDevBuilds > amountDevBuilds && (
|
{totalDevBuilds > amountDevBuilds && (
|
||||||
<Stack
|
<Stack
|
||||||
sx={{ mt: '0 !important' }}
|
sx={{ mt: '0 !important' }}
|
||||||
borderLeft={{ base: 'none', md: '2px solid #11866f' }}
|
borderLeft={{ base: 'none', md: '2px solid var(--chakra-colors-primary)' }}
|
||||||
w={{ base: '100%', md: 'auto' }}
|
|
||||||
>
|
>
|
||||||
<Link as='button' variant='button-link-secondary' onClick={showMoreDevBuilds}>
|
<Link as='button' variant='button-link-secondary' onClick={showMoreDevBuilds}>
|
||||||
<Text
|
<Text
|
||||||
|
|
Loading…
Reference in New Issue