mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Dont show section if all items removed, better colours for load more button
This commit is contained in:
parent
dcab8ff7df
commit
ea928439e2
3 changed files with 18 additions and 16 deletions
|
|
@ -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',
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue