|
@@ -114,6 +114,8 @@ viewDraft draft =
|
|
|
List.map (\c -> viewKeyedCard (chosen.name == c.name) c)
|
|
List.map (\c -> viewKeyedCard (chosen.name == c.name) c)
|
|
|
(Zipper.focus draft).available
|
|
(Zipper.focus draft).available
|
|
|
in
|
|
in
|
|
|
|
|
+ -- Making this a keyed node forces Elm to recreate each card when the card name changes,
|
|
|
|
|
+ -- so the old image doesn't hang around during loading of the new card image
|
|
|
Keyed.node "div"
|
|
Keyed.node "div"
|
|
|
[ class "grid grid-cols-8 w-100 gap-6" ]
|
|
[ class "grid grid-cols-8 w-100 gap-6" ]
|
|
|
picks
|
|
picks
|