Skip to content

Commit

Permalink
[breaking] Fix typo in frame height viewport constants. (#138)
Browse files Browse the repository at this point in the history
Accidentally used `w` instead of `h` due to copy-pasting code.
  • Loading branch information
jverkoey authored Aug 10, 2024
1 parent 17b9a20 commit 703142f
Showing 1 changed file with 17 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ public struct FrameHeightValue: ExpressibleByIntegerLiteral, ExpressibleByFloatL
public static let auto = Self(.auto)
public static let full = Self(.full)
public static let screen = Self(.screen)
public static let svw = Self(.svw)
public static let lvw = Self(.lvw)
public static let dvw = Self(.dvw)

/// Sets a view's height to the smallest possible height of the viewport.
public static let svh = Self(.svh)

/// Sets a view's height to the largest possible height of the viewport.
public static let lvh = Self(.lvh)

/// Sets a view's height to span the entire height of the viewport and
/// changes as the browser UI expands or contracts.
public static let dvh = Self(.dvh)

public static let min = Self(.min)
public static let max = Self(.max)
public static let fit = Self(.fit)
Expand All @@ -30,9 +38,9 @@ public struct FrameHeightValue: ExpressibleByIntegerLiteral, ExpressibleByFloatL
case auto
case full
case screen
case svw
case lvw
case dvw
case svh
case lvh
case dvh
case min
case max
case fit
Expand All @@ -47,9 +55,9 @@ public struct FrameHeightValue: ExpressibleByIntegerLiteral, ExpressibleByFloatL
case .auto: return "auto"
case .full: return "full"
case .screen: return "screen"
case .svw: return "svw"
case .lvw: return "lvw"
case .dvw: return "dvw"
case .svh: return "svh"
case .lvh: return "lvh"
case .dvh: return "dvh"
case .min: return "min"
case .max: return "max"
case .fit: return "fit"
Expand Down

0 comments on commit 703142f

Please sign in to comment.