From 72807331860ab1b88edb4aa010bc9183f3e9f635 Mon Sep 17 00:00:00 2001 From: Francisco Pessano Date: Mon, 14 Oct 2024 00:25:02 -0300 Subject: [PATCH] Changes on album image --- src/app/_components/album-image.tsx | 52 +++++++++++--------------- src/app/_components/album-showcase.tsx | 10 +++-- tailwind.config.ts | 15 +++++++- 3 files changed, 42 insertions(+), 35 deletions(-) diff --git a/src/app/_components/album-image.tsx b/src/app/_components/album-image.tsx index fb8368c..ffd3062 100644 --- a/src/app/_components/album-image.tsx +++ b/src/app/_components/album-image.tsx @@ -102,42 +102,32 @@ export function AlbumImage({ /> )} {showSpookyImage && !spookyImageLoaded && !error && ( -
-
- {(() => { - if (generateSpookyImageData) { - if (onQueue) { - return ( - <> - {" "} -

On queue...

- - ); - } +
+ {(() => { + if (generateSpookyImageData) { + if (onQueue) { return ( <> - -

Generating...

- - ); - } else { - return ( - <> - -

Getting image...

+ {" "} +

On queue...

); } - })()} -
+ return ( + <> + +

Generating...

+ + ); + } else { + return ( + <> + +

Getting image...

+ + ); + } + })()}
)} {error && ( diff --git a/src/app/_components/album-showcase.tsx b/src/app/_components/album-showcase.tsx index 1638b58..be6b5af 100644 --- a/src/app/_components/album-showcase.tsx +++ b/src/app/_components/album-showcase.tsx @@ -135,10 +135,12 @@ export default function AlbumShowcase({ >
setShowSpookyImage(!showSpookyImage)} - className="cursor-pointer *:select-none" + className="*:drag-none cursor-pointer *:select-none" > - + - +