From ed73050dc986d45fc4a610802ab1237c225d9b63 Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Mon, 17 Feb 2020 19:56:13 -0600 Subject: [PATCH] add comment ID to output --- src/Comment.elm | 4 ++-- src/Constraint.elm | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Comment.elm b/src/Comment.elm index e682db9..d51d04d 100644 --- a/src/Comment.elm +++ b/src/Comment.elm @@ -11,7 +11,7 @@ type alias Comment = view : Comment -> Html msg -view { height } = +view { height, id } = Html.div [ Attrs.style "width" "150px" , Attrs.style "height" (String.fromInt height ++ "px") @@ -19,4 +19,4 @@ view { height } = , Attrs.style "border-radius" "10px" , Attrs.style "background-color" "white" ] - [] + [ Html.text (String.fromInt id) ] diff --git a/src/Constraint.elm b/src/Constraint.elm index 7be49f1..80f130d 100644 --- a/src/Constraint.elm +++ b/src/Constraint.elm @@ -32,7 +32,6 @@ init { heights, attachments, margin } = , positions = attachments , margin = margin } - |> Debug.log "initial" positions : Model -> Dict Int Float