@@ -1536,13 +1536,21 @@ type Orientation
1536classifyDevice : { window | height : Int, width : Int } -> Device
1536classifyDevice : { window | height : Int, width : Int } -> Device
1537classifyDevice window =
1537classifyDevice window =
1538 { class =
1538 { class =
1539− if window.width <= 600 then
1541+ if window.width < window.height then
1547+ if shortSide <= 600 then
1542− else if window.width > 600 && window.width <= 1200 then
1550+ else if shortSide > 600 && shortSide <= 1200 then
1545− else if window.width > 1200 && window.width <= 1800 then
1553+ else if shortSide > 1200 && shortSide <= 1800 then
@@ -1555,7 +1563,6 @@ classifyDevice window =
1555 Landscape
1563 Landscape
1559{-| When designing it's nice to use a modular scale to set spacial rythms.
1566{-| When designing it's nice to use a modular scale to set spacial rythms.
1561 scaled =
1568 scaled =