optimize clsx function to make it more readable

This commit is contained in:
Realmy 2024-11-11 19:32:39 +01:00
parent b4004006bf
commit c0925bf6de
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,9 @@
ondragover={() => (dragOver = true)}
ondragleave={() => (dragOver = false)}
class={clsx(
"w-full h-80 max-w-screen-lg flex items-center justify-center cursor-pointer flex-col border-2 border-solid border-foreground-muted-alt rounded-2xl hover:scale-95 hover:opacity-70 transition-all duration-150 ease-out",
"w-full h-80 max-w-screen-lg flex items-center justify-center cursor-pointer flex-col",
"border-2 border-solid border-foreground-muted-alt rounded-2xl",
"hover:scale-95 hover:opacity-70 transition-all duration-150 ease-out",
{
"scale-95 opacity-70": dragOver,
},