Fix part11
This commit is contained in:
@@ -200,11 +200,16 @@ viewErrorMessage errorMessage =
|
|||||||
text ""
|
text ""
|
||||||
|
|
||||||
|
|
||||||
viewSearchResult : SearchResult -> Html Msg
|
viewStars : SearchResult -> Table.HtmlDetails Msg
|
||||||
|
viewStars result =
|
||||||
|
Table.HtmlDetails []
|
||||||
|
[ span [ class "star-count" ] [ text (toString result.stars) ] ]
|
||||||
|
|
||||||
|
|
||||||
|
viewSearchResult : SearchResult -> Table.HtmlDetails Msg
|
||||||
viewSearchResult result =
|
viewSearchResult result =
|
||||||
li []
|
Table.HtmlDetails []
|
||||||
[ span [ class "star-count" ] [ text (toString result.stars) ]
|
[ a [ href ("https://github.com/" ++ result.name), target "_blank" ]
|
||||||
, a [ href ("https://github.com/" ++ result.name), target "_blank" ]
|
|
||||||
[ text result.name ]
|
[ text result.name ]
|
||||||
, button [ class "hide-result", onClick (DeleteById result.id) ]
|
, button [ class "hide-result", onClick (DeleteById result.id) ]
|
||||||
[ text "X" ]
|
[ text "X" ]
|
||||||
|
|||||||
@@ -137,3 +137,17 @@ button:focus, input:focus {
|
|||||||
display: block;
|
display: block;
|
||||||
color: #555;
|
color: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
text-align: left;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
th:hover {
|
||||||
|
color: rgb(96, 181, 204);
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td {
|
||||||
|
font-size: 18px;
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user