diff --git a/modules/webapp/src/main/elm/Comp/ItemCard.elm b/modules/webapp/src/main/elm/Comp/ItemCard.elm index e2409131..fd51fc8d 100644 --- a/modules/webapp/src/main/elm/Comp/ItemCard.elm +++ b/modules/webapp/src/main/elm/Comp/ItemCard.elm @@ -807,7 +807,7 @@ previewImage2 texts cfg settings model item = ([ class "overflow-hidden block bg-gray-50 dark:bg-slate-700 dark:bg-opacity-40 border-gray-400 dark:hover:border-slate-500 w-full" , classList [ ( "rounded-t-lg", isCardView ) - , ( Data.UiSettings.cardPreviewSize2 settings, isCardView && not isRowOpen ) + , ( Data.UiSettings.cardPreviewSize2 settings, isCardView ) ] ] ++ mkCardAction texts cfg settings item diff --git a/modules/webapp/src/main/elm/Page/Home/View2.elm b/modules/webapp/src/main/elm/Page/Home/View2.elm index a8577cf7..f87bd94f 100644 --- a/modules/webapp/src/main/elm/Page/Home/View2.elm +++ b/modules/webapp/src/main/elm/Page/Home/View2.elm @@ -330,7 +330,11 @@ defaultMenuBar texts flags settings model = , label = texts.showItemGroups , attrs = [ href "#" - , onClick ToggleShowGroups + , if List.length model.itemListModel.results.groups <= 1 then + class "" + + else + onClick ToggleShowGroups ] } , { icon =