mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-28 17:55:06 +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" ]
|
||||
(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
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user