Merge pull request #4061 from omnivore-app/fix/web-home-load-more

Dont show section if all items removed, better colours for load more button
This commit is contained in:
Jackson Harper
2024-06-13 23:28:33 +08:00
committed by GitHub
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',