Skip to content

Commit 31d5f56

Browse files
committed
[fix] Return mobile view threshold to 4:3 from 1:1
1 parent 5bc0314 commit 31d5f56

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const store = createStore(
4141
);
4242

4343
class App extends Component {
44-
portraitMediaQuery = window.matchMedia('(orientation: portrait)');
44+
portraitMediaQuery = window.matchMedia('(max-aspect-ratio: 4/3)');
4545

4646
componentDidMount() {
4747
this._fetchUser();

src/styles/App.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ $score-line-height-desktop: calc(#{$score-font-size-desktop} - 2px);
107107
$score-line-height-mobile: calc(#{$score-font-size-mobile} - 2px);
108108

109109
$media-landscape: (
110-
min-aspect-ratio: 1,
110+
min-aspect-ratio: 4/3,
111111
);
112112
$media-portrait: (
113-
max-aspect-ratio: 1,
113+
max-aspect-ratio: 4/3,
114114
);
115115
$media-no-hover: (
116116
hover: none,

0 commit comments

Comments
 (0)