Commit fa4848a0 authored by Emmanuel Raviart's avatar Emmanuel Raviart

Remove useless div and improve top & bottom margins of arguments in card.

parent d2dae68c
......@@ -341,45 +341,43 @@ viewCardContent model card =
[ ul [ class "list-unstyled" ]
(List.map
(\argument ->
li []
[ div []
[ span
[ attribute "aria-hidden" "true"
, class
("glyphicon "
++ if argument.keyId == "cons" then
"glyphicon-minus"
else if argument.keyId == "pros" then
"glyphicon-plus"
else
"glyphicon-triangle-right"
)
]
[]
, text " "
, div [ style [ ( "display", "inline-block" ) ] ]
[ viewValueIdLine
language
(Just navigate)
data
False
argument.valueId
]
, text " "
, button
[ attribute "data-target" "#debate-content"
, attribute "data-toggle" "modal"
, class "btn btn-default btn-xs btn-action"
, onClick
(ForSelf
(LoadDebateProperties
[ argument.valueId ]
)
li [ style [ ( "margin-bottom", "4px" ), ( "margin-top", "4px" ) ] ]
[ span
[ attribute "aria-hidden" "true"
, class
("glyphicon "
++ if argument.keyId == "cons" then
"glyphicon-minus"
else if argument.keyId == "pros" then
"glyphicon-plus"
else
"glyphicon-triangle-right"
)
]
[]
, text " "
, div [ style [ ( "display", "inline-block" ) ] ]
[ viewValueIdLine
language
(Just navigate)
data
False
argument.valueId
]
, text " "
, button
[ attribute "data-target" "#debate-content"
, attribute "data-toggle" "modal"
, class "btn btn-default btn-xs btn-action"
, onClick
(ForSelf
(LoadDebateProperties
[ argument.valueId ]
)
, type_ "button"
]
[ text (I18n.translate language (I18n.Debate)) ]
)
, type_ "button"
]
[ text (I18n.translate language (I18n.Debate)) ]
]
)
card.arguments
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment