Skip to content

Commit

Permalink
Few small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
turboMaCk committed Jan 16, 2021
1 parent 9bec66b commit e1930e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions src/Page/Options.elm
Expand Up @@ -136,7 +136,7 @@ viewSuccess :
-> Html Msg
viewSuccess channel showNixOSDetails show hits =
ul []
(List.concatMap
(List.map
(viewResultItem channel showNixOSDetails show)
hits
)
Expand All @@ -147,7 +147,7 @@ viewResultItem :
-> Bool
-> Maybe String
-> Search.ResultItem ResultItemSource
-> List (Html Msg)
-> Html Msg
viewResultItem channel _ show item =
let
showHtml value =
Expand Down Expand Up @@ -230,7 +230,7 @@ viewResultItem channel _ show item =
open =
SearchMsg (Search.ShowDetails item.source.name)
in
[ li
li
[ class "option"
, onClick open
, Search.elementId item.source.name
Expand All @@ -247,7 +247,6 @@ viewResultItem channel _ show item =
[ text item.source.name ]
]
)
]



Expand Down
7 changes: 3 additions & 4 deletions src/Page/Packages.elm
Expand Up @@ -291,7 +291,7 @@ viewSuccess :
-> Html Msg
viewSuccess channel showNixOSDetails show hits =
ul []
(List.concatMap
(List.map
(viewResultItem channel showNixOSDetails show)
hits
)
Expand All @@ -302,7 +302,7 @@ viewResultItem :
-> Bool
-> Maybe String
-> Search.ResultItem ResultItemSource
-> List (Html Msg)
-> Html Msg
viewResultItem channel showNixOSDetails show item =
let
cleanPosition =
Expand Down Expand Up @@ -516,7 +516,7 @@ viewResultItem channel showNixOSDetails show item =
open =
SearchMsg (Search.ShowDetails item.source.attr_name)
in
[ li
li
[ class "package"
, onClick open
, Search.elementId item.source.attr_name
Expand All @@ -531,7 +531,6 @@ viewResultItem channel showNixOSDetails show item =
, shortPackageDetails
]
)
]



Expand Down

0 comments on commit e1930e1

Please sign in to comment.