mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-05 10:59:33 +00:00
Fix scrolling to card
That was broken due to the independent scroll in commit #bcb1b8.
This commit is contained in:
parent
cef1c38cc4
commit
cbca4d234f
@ -648,7 +648,7 @@ scrollToCard : Maybe String -> Model -> ( Model, Cmd Msg, Sub Msg )
|
|||||||
scrollToCard mId model =
|
scrollToCard mId model =
|
||||||
let
|
let
|
||||||
scroll id =
|
scroll id =
|
||||||
Scroll.scroll id 0.5 0.5 0.5 0.5
|
Scroll.scrollElementY "item-card-list" id 0.5 0.5
|
||||||
in
|
in
|
||||||
case mId of
|
case mId of
|
||||||
Just id ->
|
Just id ->
|
||||||
|
@ -110,6 +110,7 @@ view flags settings model =
|
|||||||
, ( "sixteen wide column", menuCollapsed model )
|
, ( "sixteen wide column", menuCollapsed model )
|
||||||
, ( "item-card-list", True )
|
, ( "item-card-list", True )
|
||||||
]
|
]
|
||||||
|
, id "item-card-list"
|
||||||
]
|
]
|
||||||
(List.concat
|
(List.concat
|
||||||
[ viewBar flags model
|
[ viewBar flags model
|
||||||
|
Loading…
x
Reference in New Issue
Block a user