Skip to content

Commit

Permalink
feat: make reward banner sticky in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jan 3, 2024
1 parent dac478d commit b2c3c5d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/main/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,11 @@ const TabsHomePage = ({

return (
<>
{isMobile && <MobileStakerRewardDashboard style={{ margin: '-12px -16px 0' }} />}
{isMobile && (
<MobileStakerRewardDashboard
style={{ margin: '-12px -16px 0', position: 'sticky', top: '64px', zIndex: 10 }}
/>
)}
<span>
<AffixTabs tabKey={tab} setKey={onChangeKey} visible={hidden} {...props} />
</span>
Expand Down

0 comments on commit b2c3c5d

Please sign in to comment.