fix: update background position in ClientLayout for improved visual presentation of book thumbnails
This commit is contained in:
@@ -78,7 +78,7 @@ export default function ClientLayout({ children, initialLibraries = [], initialF
|
|||||||
return {
|
return {
|
||||||
backgroundImage: `url(/api/komga/images/books/${randomBookId}/thumbnail)`,
|
backgroundImage: `url(/api/komga/images/books/${randomBookId}/thumbnail)`,
|
||||||
backgroundSize: "cover" as const,
|
backgroundSize: "cover" as const,
|
||||||
backgroundPosition: "center" as const,
|
backgroundPosition: "top center" as const,
|
||||||
backgroundRepeat: "no-repeat" as const,
|
backgroundRepeat: "no-repeat" as const,
|
||||||
filter: blur > 0 ? `blur(${blur}px)` : undefined,
|
filter: blur > 0 ? `blur(${blur}px)` : undefined,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user