From be8eacdbe90c609d692c5f0a5ff5cb97ff4e5530 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Sun, 23 Feb 2020 14:36:19 +0100 Subject: [PATCH] Display full attachment name in title tooltip --- modules/webapp/src/main/elm/Comp/ItemDetail.elm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/webapp/src/main/elm/Comp/ItemDetail.elm b/modules/webapp/src/main/elm/Comp/ItemDetail.elm index 4390626d..ae78942e 100644 --- a/modules/webapp/src/main/elm/Comp/ItemDetail.elm +++ b/modules/webapp/src/main/elm/Comp/ItemDetail.elm @@ -1134,15 +1134,16 @@ renderAttachmentsTabMenu model = div [ class "ui top attached tabular menu" ] (List.indexedMap (\pos -> - \a -> - div + \el -> + a [ classList [ ( "item", True ) , ( "active", pos == model.visibleAttach ) ] + , title (Maybe.withDefault "No Name" el.name) , onClick (SetActiveAttachment pos) ] - [ Maybe.map (Util.String.ellipsis 20) a.name + [ Maybe.map (Util.String.ellipsis 20) el.name |> Maybe.withDefault "No Name" |> text ]