Improve label for suggestions when there are none

This commit is contained in:
eikek
2021-06-07 10:11:22 +02:00
parent 6d8bd530cb
commit 206e7842ca
2 changed files with 8 additions and 1 deletions

View File

@ -407,7 +407,11 @@ renderSuggestions texts model mkName idnames tagger =
, class "flex flex-col text-sm"
]
[ div [ class "font-bold my-1" ]
[ text texts.suggestions
[ if List.isEmpty idnames then
text texts.noSuggestions
else
text texts.suggestions
]
, ul [ class "list-disc ml-6" ] <|
(idnames