diff --git a/app/(auth)/(tabs)/(libraries)/_layout.tsx b/app/(auth)/(tabs)/(libraries)/_layout.tsx index 93e7794c..4e4f453b 100644 --- a/app/(auth)/(tabs)/(libraries)/_layout.tsx +++ b/app/(auth)/(tabs)/(libraries)/_layout.tsx @@ -157,6 +157,23 @@ export default function IndexLayout() { Show titles + { + updateSettings({ + libraryOptions: { + ...settings.libraryOptions, + showStats: newValue === "on" ? true : false, + }, + }); + }} + > + + + Show stats + + diff --git a/components/library/LibraryItemCard.tsx b/components/library/LibraryItemCard.tsx index 0bf299bb..87de1870 100644 --- a/components/library/LibraryItemCard.tsx +++ b/components/library/LibraryItemCard.tsx @@ -117,7 +117,7 @@ export const LibraryItemCard: React.FC = ({ library, ...props }) => { if (settings?.libraryOptions?.display === "row") { return ( - + = ({ library, ...props }) => { {library.Name} + {settings?.libraryOptions?.showStats && ( + + {itemsCount} items + + )} ); @@ -135,8 +140,7 @@ export const LibraryItemCard: React.FC = ({ library, ...props }) => { return ( - = ({ library, ...props }) => { position: "absolute", top: 0, left: 0, + overflow: "hidden", }} - /> + > + + + {settings?.libraryOptions?.showTitles && ( - + {library.Name} )} + {settings?.libraryOptions?.showStats && ( + + {itemsCount} items + + )} ); @@ -163,9 +191,11 @@ export const LibraryItemCard: React.FC = ({ library, ...props }) => { {library.Name} - - {itemsCount} items - + {settings?.libraryOptions?.showStats && ( + + {itemsCount} items + + )} => { cardStyle: "detailed", imageStyle: "cover", showTitles: true, + showStats: true, }, };