Hide menu in share detail when not usable

This commit is contained in:
eikek 2021-10-25 16:30:17 +02:00
parent 2b215afa81
commit 3f71985b64

View File

@ -36,7 +36,7 @@ viewSidebar : Texts -> Bool -> Flags -> UiSettings -> String -> String -> Model
viewSidebar texts visible flags settings shareId itemId model =
div
[ id "sidebar"
, classList [ ( "hidden", not visible ) ]
, classList [ ( "hidden", not visible || model.viewMode /= ViewNormal ) ]
, class S.sidebar
]
[ div [ class "pt-2" ]