mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-13 01:39:33 +00:00
Display full attachment name in title tooltip
This commit is contained in:
parent
1f431c3222
commit
be8eacdbe9
@ -1134,15 +1134,16 @@ renderAttachmentsTabMenu model =
|
|||||||
div [ class "ui top attached tabular menu" ]
|
div [ class "ui top attached tabular menu" ]
|
||||||
(List.indexedMap
|
(List.indexedMap
|
||||||
(\pos ->
|
(\pos ->
|
||||||
\a ->
|
\el ->
|
||||||
div
|
a
|
||||||
[ classList
|
[ classList
|
||||||
[ ( "item", True )
|
[ ( "item", True )
|
||||||
, ( "active", pos == model.visibleAttach )
|
, ( "active", pos == model.visibleAttach )
|
||||||
]
|
]
|
||||||
|
, title (Maybe.withDefault "No Name" el.name)
|
||||||
, onClick (SetActiveAttachment pos)
|
, onClick (SetActiveAttachment pos)
|
||||||
]
|
]
|
||||||
[ Maybe.map (Util.String.ellipsis 20) a.name
|
[ Maybe.map (Util.String.ellipsis 20) el.name
|
||||||
|> Maybe.withDefault "No Name"
|
|> Maybe.withDefault "No Name"
|
||||||
|> text
|
|> text
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user