Skip to content

Commit

Permalink
style: Prediction style (#8041)
Browse files Browse the repository at this point in the history
### <samp>🤖 Generated by Copilot at db675e9</samp>

### Summary
🎂🐰📱


Adjust `BirthdayBunny` image position on predictions menu using percentage values. Improve responsiveness and alignment of UI on different screen sizes.

> _`BirthdayBunny` moves_
> _Adjusting to screen height_
> _Springtime alignment_

### Walkthrough
*  Adjust the position of the `BirthdayBunny` image on the menu bar using percentage values instead of fixed pixel values to improve responsiveness and alignment on different screen sizes ([link](https://github.com/pancakeswap/pancake-frontend/pull/8041/files?diff=unified&w=0#diff-b7cba27cbf14f9083ceea89b1d24da477ba77ccdcc020fe9a75f4ffd74467e15L80-R90))
  • Loading branch information
ChefMomota authored Oct 5, 2023
1 parent d9d3159 commit 298f2b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const JupiterPredictorsContainer = styled(Box)`
${({ theme }) => theme.mediaQueries.lg} {
position: absolute;
margin: -120px 0 0 16px;
margin: -180px 0 0 16px;
}
`

Expand Down
10 changes: 7 additions & 3 deletions apps/web/src/views/Predictions/components/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,19 @@ const BirthdayBunny = styled(Image)`
}
@media only screen and (min-height: 600px) {
top: 70px;
top: 3%;
}
@media only screen and (min-height: 1000px) {
top: 140px;
top: 9%;
}
@media only screen and (min-height: 1100px) {
top: 200px;
top: 14%;
}
@media only screen and (min-height: 1200px) {
top: 17%;
}
@media only screen and (min-height: 1300px) {
Expand Down

1 comment on commit 298f2b1

@vercel
Copy link

@vercel vercel bot commented on 298f2b1 Oct 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.