Dont show section if all items removed, better colours for load more button

This commit is contained in:
Jackson Harper 2024-06-13 22:40:49 +08:00
parent dcab8ff7df
commit ea928439e2
3 changed files with 18 additions and 16 deletions

View file

@ -46,8 +46,8 @@ const Pagination = <T,>({
fontFamily: '$inter',
fontSize: '15px',
fontWeight: '500',
color: '$thTextSubtle4',
bg: '#3D3D3D',
color: '$readerFont',
bg: '$thNavMenuFooter',
py: '10px',
px: '25px',
}}

View file

@ -244,19 +244,21 @@ const TopPicksHomeSection = (props: HomeSectionProps): JSX.Element => {
},
}}
>
<SpanBox
css={{
fontFamily: '$inter',
fontSize: '16px',
fontWeight: '600',
color: '$homeTextTitle',
'@mdDown': {
px: '20px',
},
}}
>
{props.homeSection.title}
</SpanBox>
{items.length > 0 && (
<SpanBox
css={{
fontFamily: '$inter',
fontSize: '16px',
fontWeight: '600',
color: '$homeTextTitle',
'@mdDown': {
px: '20px',
},
}}
>
{props.homeSection.title}
</SpanBox>
)}
<Pagination
items={items}

View file

@ -17,7 +17,7 @@ export const NavMenuFooter = (props: NavMenuFooterProps): JSX.Element => {
position: 'fixed',
bottom: '0%',
alignItems: 'center',
backgroundColor: '$thNavMenuFooter',
bg: '$thNavMenuFooter',
width: LIBRARY_LEFT_MENU_WIDTH,
overflowY: 'auto',
overflowX: 'hidden',