Skip to content

Commit

Permalink
fix: HelpButton in pools page header and live-finished control for sm…
Browse files Browse the repository at this point in the history
…all screens (pancakeswap#1393)
  • Loading branch information
Chef-Cheems authored May 31, 2021
1 parent 908bd10 commit df5684c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/views/Pools/components/HelpButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@ import { useTranslation } from 'contexts/Localization'

const ButtonText = styled(Text)`
display: none;
${({ theme }) => theme.mediaQueries.lg} {
${({ theme }) => theme.mediaQueries.xs} {
display: block;
}
`

const StyledLink = styled(Link)`
margin-right: 16px;
flex: 1;
display: flex;
justify-content: flex-end;
&:hover {
text-decoration: none;
}
${({ theme }) => theme.mediaQueries.sm} {
flex: 1;
}
`

const HelpButton = () => {
Expand Down
6 changes: 4 additions & 2 deletions src/views/Pools/components/PoolTabButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ const PoolTabButtons = ({ stakedOnly, setStakedOnly, hasStakeInFinishedPools, vi
if (isXs || isSm) {
return (
<Flex flexDirection="column" alignItems="flex-start" mb="24px">
{viewModeToggle}
{liveOrFinishedSwitch}
<Flex width="100%" justifyContent="space-between">
{viewModeToggle}
{liveOrFinishedSwitch}
</Flex>
{stakedOnlySwitch}
</Flex>
)
Expand Down
2 changes: 1 addition & 1 deletion src/views/Pools/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const Pools: React.FC = () => {
return (
<>
<PageHeader>
<Flex justifyContent="space-between" flexDirection={['column', null, 'row']}>
<Flex justifyContent="space-between" flexDirection={['column', null, null, 'row']}>
<Flex flex="1" flexDirection="column" mr={['8px', 0]}>
<Heading as="h1" scale="xxl" color="secondary" mb="24px">
{t('Syrup Pools')}
Expand Down

0 comments on commit df5684c

Please sign in to comment.