@@ -79,10 +79,21 @@ export function PageDisplay({
)}
{hasError ? (
-
@@ -94,7 +105,7 @@ export function PageDisplay({
src={imageBlobUrls[currentPage] || getPageUrl(currentPage)}
alt={`Page ${currentPage}`}
className={cn(
- "max-h-full max-w-full cursor-pointer rounded-md object-contain transition-opacity",
+ "max-h-full max-w-full cursor-pointer object-contain transition-opacity",
isLoading ? "opacity-0" : "opacity-100"
)}
loading="eager"
@@ -114,9 +125,9 @@ export function PageDisplay({
{/* Page 2 (double page) */}
{isDoublePage && shouldShowDoublePage(currentPage) && (
{secondPageLoading && (
@@ -132,10 +143,21 @@ export function PageDisplay({
)}
{secondPageHasError ? (
-
-
-
-
+
+
+
+
Image non disponible
@@ -147,7 +169,7 @@ export function PageDisplay({
src={imageBlobUrls[currentPage + 1] || getPageUrl(currentPage + 1)}
alt={`Page ${currentPage + 1}`}
className={cn(
- "max-h-full max-w-full cursor-pointer rounded-md object-contain transition-opacity",
+ "max-h-full max-w-full cursor-pointer object-contain transition-opacity",
secondPageLoading ? "opacity-0" : "opacity-100"
)}
loading="eager"