mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-05 22:55:58 +00:00
Change the card link to only use the main content
The card is no longer a link itself. The main target is moved to be the content (the area containing the title and tags). This is in preparation of upcoming changes: if the whole card is a link, it cannot contain other links, due to a restriction by html. Later a card may have more links to provide.
This commit is contained in:
parent
67e8994aec
commit
848c245db6
@ -219,15 +219,13 @@ viewItem cfg settings item =
|
|||||||
Data.ItemSelection.Active ids ->
|
Data.ItemSelection.Active ids ->
|
||||||
onClick (ToggleSelectItem ids item.id)
|
onClick (ToggleSelectItem ids item.id)
|
||||||
in
|
in
|
||||||
a
|
div
|
||||||
([ classList
|
([ classList
|
||||||
[ ( "ui fluid card", True )
|
[ ( "ui fluid card", True )
|
||||||
, ( cardColor, True )
|
, ( cardColor, True )
|
||||||
, ( "current", cfg.current == Just item.id )
|
, ( "current", cfg.current == Just item.id )
|
||||||
]
|
]
|
||||||
, id item.id
|
, id item.id
|
||||||
, href "#"
|
|
||||||
, cardAction
|
|
||||||
]
|
]
|
||||||
++ DD.draggable ItemDDMsg item.id
|
++ DD.draggable ItemDDMsg item.id
|
||||||
)
|
)
|
||||||
@ -243,7 +241,11 @@ viewItem cfg settings item =
|
|||||||
]
|
]
|
||||||
[]
|
[]
|
||||||
]
|
]
|
||||||
, div [ class "content" ]
|
, a
|
||||||
|
[ class "content"
|
||||||
|
, href "#"
|
||||||
|
, cardAction
|
||||||
|
]
|
||||||
[ case cfg.selection of
|
[ case cfg.selection of
|
||||||
Data.ItemSelection.Active ids ->
|
Data.ItemSelection.Active ids ->
|
||||||
div [ class "header" ]
|
div [ class "header" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user