Skip to content

Commit

Permalink
Take into account height too when deciding to scale up the screen
Browse files Browse the repository at this point in the history
Fixes #47
  • Loading branch information
mihaip committed Apr 8, 2022
1 parent 8d12820 commit 7994629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mac.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@

/* Scale up to take up the whole screen. On retina screens we can also use a
1.5 factor and still keep things pixel-perfect. */
@media (min-width: 1460px) and (max-width: 1939px) and (-webkit-device-pixel-ratio: 2) {
@media (min-width: 1460px) and (max-width: 1939px) and (min-height: 1000px) and (-webkit-device-pixel-ratio: 2) {
.Mac {
transform: scale(1.5);
}
}

@media (min-width: 1940px) {
@media (min-width: 1940px) and (min-height: 1300px) {
.Mac {
transform: scale(2);
}
Expand Down

0 comments on commit 7994629

Please sign in to comment.