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>
pull/26459/head^2
Nicolás Quiroz 2 years ago committed by GitHub
parent 1f90789712
commit e25b87f32d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 31
      src/pages/downloads.tsx

@ -374,26 +374,13 @@ const DownloadsPage: NextPage<Props> = ({ data }) => {
<Flex
sx={{ mt: '0 !important' }}
flexDirection={{ base: 'column', md: 'row' }}
justifyContent='space-between'
justifyContent='flex-end'
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 && (
<Stack
sx={{ mt: '0 !important' }}
borderLeft={{ base: 'none', md: '2px solid #11866f' }}
w={{ base: '100%', md: 'auto' }}
borderLeft={{ base: 'none', md: '2px solid var(--chakra-colors-primary)' }}
>
<Link
as='button'
@ -441,23 +428,13 @@ const DownloadsPage: NextPage<Props> = ({ data }) => {
<Flex
sx={{ mt: '0 !important' }}
flexDirection={{ base: 'column', md: 'row' }}
justifyContent='space-between'
justifyContent='flex-end'
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 && (
<Stack
sx={{ mt: '0 !important' }}
borderLeft={{ base: 'none', md: '2px solid #11866f' }}
w={{ base: '100%', md: 'auto' }}
borderLeft={{ base: 'none', md: '2px solid var(--chakra-colors-primary)' }}
>
<Link as='button' variant='button-link-secondary' onClick={showMoreDevBuilds}>
<Text

Loading…
Cancel
Save