fix: Double page centered
This commit is contained in:
@@ -171,9 +171,14 @@ export function BookReader({ book, pages, onClose }: BookReaderProps) {
|
|||||||
|
|
||||||
{/* Pages */}
|
{/* Pages */}
|
||||||
<div className="relative flex-1 flex items-center justify-center overflow-hidden p-1">
|
<div className="relative flex-1 flex items-center justify-center overflow-hidden p-1">
|
||||||
<div className="relative w-full h-[calc(100vh-2rem)] flex items-center justify-center">
|
<div className="relative w-full h-[calc(100vh-2rem)] flex items-center justify-center gap-0">
|
||||||
{/* Page courante */}
|
{/* Page courante */}
|
||||||
<div className="relative h-full w-full flex items-center justify-center">
|
<div
|
||||||
|
className={cn(
|
||||||
|
"relative h-full flex items-center justify-end",
|
||||||
|
isDoublePage ? "w-1/2" : "w-full"
|
||||||
|
)}
|
||||||
|
>
|
||||||
<ImageLoader isLoading={isLoading} />
|
<ImageLoader isLoading={isLoading} />
|
||||||
{currentPageUrl && (
|
{currentPageUrl && (
|
||||||
<img
|
<img
|
||||||
@@ -190,7 +195,7 @@ export function BookReader({ book, pages, onClose }: BookReaderProps) {
|
|||||||
|
|
||||||
{/* Deuxième page en mode double page */}
|
{/* Deuxième page en mode double page */}
|
||||||
{isDoublePage && shouldShowDoublePage(currentPage) && (
|
{isDoublePage && shouldShowDoublePage(currentPage) && (
|
||||||
<div className="relative h-full w-full flex items-center justify-center">
|
<div className="relative h-full w-1/2 flex items-center justify-start">
|
||||||
<ImageLoader isLoading={secondPageLoading} />
|
<ImageLoader isLoading={secondPageLoading} />
|
||||||
{nextPageUrl && (
|
{nextPageUrl && (
|
||||||
<img
|
<img
|
||||||
|
|||||||
Reference in New Issue
Block a user