diff --git a/src/components/Library/LibraryPublicationGrid.tsx b/src/components/Library/LibraryPublicationGrid.tsx index af1a70ba..e3c67949 100644 --- a/src/components/Library/LibraryPublicationGrid.tsx +++ b/src/components/Library/LibraryPublicationGrid.tsx @@ -1,8 +1,10 @@ import PublicationCard from '@/components/Note/PublicationCard' import { Skeleton } from '@/components/ui/skeleton' +import { libraryPublicationGridColumnClass, usePanelMode } from '@/hooks/usePanelMode' import type { LibraryPublicationEntry } from '@/lib/library-publication-index' import { isBooklistNip32Label } from '@/lib/nip32-label' import { cn } from '@/lib/utils' +import { useScreenSize } from '@/providers/ScreenSizeProvider' import { BookOpen, Highlighter, MessageSquare, Tag } from 'lucide-react' import { useTranslation } from 'react-i18next' @@ -95,10 +97,13 @@ export default function LibraryPublicationGrid({ emptyMessage?: string }) { const { t } = useTranslation() + const { isSmallScreen } = useScreenSize() + const panelMode = usePanelMode() + const gridCols = libraryPublicationGridColumnClass(isSmallScreen, panelMode) if (loading) { return ( -