Skip to content

Commit

Permalink
Fix gridLengthToJs calc type
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Jul 24, 2023
1 parent ca019ad commit 2eb76ff
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions packages/bs-css/Css_Legacy_Core.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1569,24 +1569,7 @@ type nonrec gridLength =
let gridLengthToJs x =
match x with
| `auto -> {js|auto|js}
| `calc (`add, a, b) ->
{js|calc(|js}
^ Length.toString a
^ {js| + |js}
^ Length.toString b
^ {js|)|js}
| `calc (`sub, a, b) ->
{js|calc(|js}
^ Length.toString a
^ {js| - |js}
^ Length.toString b
^ {js|)|js}
| `calc (`mult, a, b) ->
{js|calc(|js}
^ Length.toString a
^ {js| * |js}
^ Length.toString b
^ {js|)|js}
| `calc c -> string_of_calc c Length.toString
| `ch x -> Js.Float.toString x ^ {js|ch|js}
| `cm x -> Js.Float.toString x ^ {js|cm|js}
| `em x -> Js.Float.toString x ^ {js|em|js}
Expand Down

0 comments on commit 2eb76ff

Please sign in to comment.