mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-05 10:59:33 +00:00
Merge pull request #1278 from eikek/bug/ui-view-change
Fix preview css when switching between tile and list
This commit is contained in:
commit
a065d39c53
@ -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"
|
([ 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
|
, classList
|
||||||
[ ( "rounded-t-lg", isCardView )
|
[ ( "rounded-t-lg", isCardView )
|
||||||
, ( Data.UiSettings.cardPreviewSize2 settings, isCardView && not isRowOpen )
|
, ( Data.UiSettings.cardPreviewSize2 settings, isCardView )
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
++ mkCardAction texts cfg settings item
|
++ mkCardAction texts cfg settings item
|
||||||
|
@ -330,7 +330,11 @@ defaultMenuBar texts flags settings model =
|
|||||||
, label = texts.showItemGroups
|
, label = texts.showItemGroups
|
||||||
, attrs =
|
, attrs =
|
||||||
[ href "#"
|
[ href "#"
|
||||||
, onClick ToggleShowGroups
|
, if List.length model.itemListModel.results.groups <= 1 then
|
||||||
|
class ""
|
||||||
|
|
||||||
|
else
|
||||||
|
onClick ToggleShowGroups
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
, { icon =
|
, { icon =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user