Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix apsect ratio calculation. (#3728)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenba committed Nov 22, 2017
1 parent d7d2bbe commit 2a3c0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/pages/shotindex/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ class Card extends React.Component {
}

getClipType(dimensions) {
if ((dimensions.x / dimensions.y) > (4 / 3)) {
if ((dimensions.x / dimensions.y) > (3 / 4)) {
return "landscape";
}
return "portrait";
Expand Down

0 comments on commit 2a3c0a5

Please sign in to comment.