Skip to content

Commit

Permalink
Add new iPhone Models to screenHeights.js (#102)
Browse files Browse the repository at this point in the history
* fix: add new iphone models to screenheights.js

* fix: add iphone 14

Co-authored-by: Steven Mask <mnicpt@gmail.com>

* fix: add iphone 14 pro max to screenheights.js

* fix: fix 1x safari browser overlap on iphone 14 pro

* fix: add iphone 12 mini specs

* fix: remove extra data for minis

Co-authored-by: Steven Mask <mnicpt@gmail.com>
  • Loading branch information
spencersablan and mnicpt authored Oct 13, 2022
1 parent c25579b commit e3d8b32
Showing 1 changed file with 54 additions and 2 deletions.
56 changes: 54 additions & 2 deletions src/screenHeights.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,34 @@
/* @flow */

export const sfvcScreens = {
"932": {
device: "iPhone 14 Pro Max",
textSizeHeights: [746, 742, 738], // 732 removed as same in Safari
textSizeHeightsNoTabs: [854, 852, 850, 848],
zoomHeight: {
"1.15": [746, 742, 738], // 733 removed as same in Safari
"1.25": [746, 743], // 738, 733 removed as same in Safari
"1.5": [746, 743], // 738, 732 removed as same in Safari
"1.75": [746, 742, 739], // 732 removed as same in Safari
"2": [746, 742], // 738, 732 removed as same in Safari
"2.5": [745, 743], // 738, 733 removed as same in Safari
"3": [749], // 743, 740, 734 removed as same in Safari
"3.01": [749], // 743, 740, 734 removed as same in Safari
},
maybeSafari: {
"1": [732],
"1.15": [733],
"1.25": [738, 733],
"1.5": [738, 732],
"1.75": [732],
"2": [738, 732],
"2.5": [738, 733],
"3": [743, 740, 734],
"3.01": [743, 740, 734],
},
},
"926": {
device: "iPhone 12/13 Pro Max",
device: "iPhone 12/13 Pro Max, iPhone 14 Plus",
textSizeHeights: [752, 748, 744, 738],
textSizeHeightsNoTabs: [860, 858, 856, 854],
zoomHeight: {
Expand Down Expand Up @@ -38,8 +64,34 @@ export const sfvcScreens = {
"3": [714],
},
},
"852": {
device: "iPhone 14 Pro",
textSizeHeights: [666, 662, 658], // 652 removed as same in Safari
textSizeHeightsNoTabs: [774, 772, 770, 768],
zoomHeight: {
"1.15": [666, 662, 658], // 652 removed as same in Safari
"1.25": [665, 661, 658], // 651 removed as same in Safari
"1.5": [666, 662, 659], // 653 removed as same in Safari
"1.75": [667, 662], // 658, 653 removed as same in Safari
"1.99": [663, 659], // 655, 649 removed as same in Safari
"2": [663, 659], // 655, 649 removed as same in Safari
"2.5": [665, 663], // 658, 653 removed as same in Safari
"3": [666, 663], // 657, 651 removed as same in Safari
},
maybeSafari: {
"1": [652],
"1.15": [652],
"1.25": [651],
"1.5": [653],
"1.75": [658, 653],
"1.99": [655, 649],
"2": [655, 649],
"2.5": [658, 653],
"3": [657, 651],
},
},
"844": {
device: "iPhone 12, iPhone 12 Pro",
device: "iPhone 12, iPhone 12 Pro, iPhone 13, iPhone 14",
textSizeHeights: [670, 666, 662, 656],
textSizeHeightsNoTabs: [778, 776, 774, 772],
zoomHeight: {
Expand Down

0 comments on commit e3d8b32

Please sign in to comment.