mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Show item position in detail view
This commit is contained in:
@ -85,6 +85,19 @@ menuBar inav settings model =
|
||||
[ title ("Previous item." ++ keyDescr "Ctrl-,")
|
||||
]
|
||||
}
|
||||
, div
|
||||
[ classList [ ( "hidden", inav.index == Nothing ) ]
|
||||
, class S.secondaryBasicButtonMain
|
||||
, class " px-4 py-2 border-t border-b border-r opacity-75"
|
||||
]
|
||||
[ Maybe.map ((+) 1) inav.index
|
||||
|> Maybe.map String.fromInt
|
||||
|> Maybe.withDefault ""
|
||||
|> text
|
||||
, text " / "
|
||||
, String.fromInt inav.length
|
||||
|> text
|
||||
]
|
||||
, B.genericButton
|
||||
{ label = ""
|
||||
, icon = "fa fa-caret-right"
|
||||
|
Reference in New Issue
Block a user