@@ -105,9 +105,11 @@ If alignment is set on elements in a layout such as `row`, then the element will
105105
106106will result in a layout like
107107
108− |-|-| |-| |-|
108+ |-|-| |-| |-|
109109
110−Where there are two elements on the left, one in the center, and one on the right.
110+Where there are two elements on the left, one on the right, and one in the center of the space between the elements on the left and right.
111+
112+**Note** For text alignment, check out `Element.Font`!
111113
112114@docs centerX, centerY, alignLeft, alignRight, alignTop, alignBottom
113115
@@ -1532,13 +1534,21 @@ type Orientation
15321534classifyDevice : { window | height : Int, width : Int } -> Device
15331535classifyDevice window =
15341536 { class =
1535− if window.width <= 600 then
1537+ let
1538+ shortSide =
1539+ if window.width < window.height then
1540+ window.width
1541+
1542+ else
1543+ window.height
1544+ in
1545+ if shortSide <= 600 then
15361546 Phone
15371547
1538− else if window.width > 600 && window.width <= 1200 then
1548+ else if shortSide > 600 && shortSide <= 1200 then
15391549 Tablet
15401550
1541− else if window.width > 1200 && window.width <= 1800 then
1551+ else if shortSide > 1200 && shortSide <= 1800 then
15421552 Desktop
15431553
15441554 else
@@ -1555,7 +1565,7 @@ classifyDevice window =
15551565{-| When designing it's nice to use a modular scale to set spacial rythms.
15561566
15571567 scaled =
1558− Scale.modular 16 1.25
1568+ Element.modular 16 1.25
15591569
15601570A modular scale starts with a number, and multiplies it by a ratio a number of times.
15611571Then, when setting font sizes you can use: