- {Array.from({ length: 3 }).map((_, i) => (
+ {Array.from({ length: enablePagination ? postsPerPage : 3 }).map((_, i) => (
@@ -217,9 +254,17 @@ export function ContentFeed({ className }: { className?: string }) {
Nenhum post publicado ainda.
) : (
- {postsWithRoleConfig?.map((post) => (
-
- ))}
+ {postsWithRoleConfig
+ ?.slice(0, enablePagination ? visiblePostsCount : postsWithRoleConfig.length)
+ .map((post) => (
+
+ ))}
+ {/* Elemento de referência para carregar mais posts */}
+ {enablePagination && visiblePostsCount < (postsWithRoleConfig?.length || 0) && (
+
+
Carregando mais posts...
+
+ )}
)}
diff --git a/src/components/dashboard/birthdays-carousel.tsx b/src/components/dashboard/birthdays-carousel.tsx
index 5c3b6877..1743dfe5 100644
--- a/src/components/dashboard/birthdays-carousel.tsx
+++ b/src/components/dashboard/birthdays-carousel.tsx
@@ -58,7 +58,7 @@ export function BirthdaysCarousel({ itens, className }: BirthdayCarouselProps) {
>
{itens.map((item, index) => (
-
+
{itens.map((item, index) => (
-
+
(
+
+ {/* Imagem de fundo borrada - sempre preenche todo o espaço */}
+
+
+ {/* Imagem principal */}
+ setIsLoaded(true)}
+ sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
+ />
+
)
}