Fix preview css when switching between tile and list

Closes: #1261
This commit is contained in:
eikek 2022-01-12 19:23:20 +01:00
parent 5f10798e86
commit bafb930877
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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 =