Skip to content

Commit

Permalink
Fix sprite offset on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
samtay committed Sep 26, 2024
1 parent 41f17b6 commit 1ea0a47
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions app/src/ui/components/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ fn AviaryLink() -> Element {
}}
#aviary-header-link:hover > #aviary-header-img,
#aviary-header-link.aviary-active > #aviary-header-img {{
background-position: -40px -0px;
background-position: -32px -0px;
}}
@media (width>=640px) {{
#aviary-header-link:hover > #aviary-header-img,
#aviary-header-link.aviary-active > #aviary-header-img {{
background-position: -40px -0px;
}}
}}
"#
}
Expand Down Expand Up @@ -85,7 +91,12 @@ fn DonateLink() -> Element {
background: no-repeat url({donate_src}) 0 0 / 200% 100%;
}}
#donate-header-link:hover > #donate-header-img {{
background-position: -40px -0px;
background-position: -32px -0px;
}}
@media (width>=640px) {{
#donate-header-link:hover > #donate-header-img {{
background-position: -40px -0px;
}}
}}
"#
}
Expand Down

0 comments on commit 1ea0a47

Please sign in to comment.