- 🧥
+ 🧥
披风
@@ -232,7 +228,7 @@ export default function SkinCard({
- {onDownload !== false && (
+ {onDownload && (
@@ -288,7 +284,7 @@ export default function SkinCard({
@@ -408,13 +404,13 @@ export default function SkinCard({
- {texture.uploader && (
+ {texture.uploader_id && (
- by {texture.uploader.username}
+ by User #{texture.uploader_id}
)}
diff --git a/src/components/SkinDetailModal.tsx b/src/components/SkinDetailModal.tsx
index d56bd0b..7858575 100644
--- a/src/components/SkinDetailModal.tsx
+++ b/src/components/SkinDetailModal.tsx
@@ -109,8 +109,7 @@ export default function SkinDetailModal({ isOpen, onClose, texture, isExternalPr
y: 0,
transition: {
duration: 0.5,
- ease: [0.25, 0.46, 0.45, 0.94],
- type: "spring",
+ type: "spring" as const,
stiffness: 100,
damping: 15
}
@@ -121,8 +120,7 @@ export default function SkinDetailModal({ isOpen, onClose, texture, isExternalPr
rotateX: 15,
y: 50,
transition: {
- duration: 0.3,
- ease: "easeIn"
+ duration: 0.3
}
},
minimized: {
@@ -132,8 +130,7 @@ export default function SkinDetailModal({ isOpen, onClose, texture, isExternalPr
width: 280,
height: 150,
transition: {
- duration: 0.4,
- ease: "easeInOut"
+ duration: 0.4
}
}
});
@@ -145,7 +142,7 @@ export default function SkinDetailModal({ isOpen, onClose, texture, isExternalPr
opacity: 1,
transition: {
duration: 0.2,
- type: "spring",
+ type: "spring" as const,
stiffness: 300,
damping: 20
}
@@ -162,7 +159,7 @@ export default function SkinDetailModal({ isOpen, onClose, texture, isExternalPr
scale: 1.02,
transition: {
duration: 0.2,
- type: "spring",
+ type: "spring" as const,
stiffness: 400,
damping: 25
}
@@ -195,14 +192,14 @@ export default function SkinDetailModal({ isOpen, onClose, texture, isExternalPr
animate={isMinimized ? "minimized" : "animate"}
exit="exit"
transition={{ type: "spring", damping: 20, stiffness: 300 }}
- className={`relative bg-white/95 dark:bg-gray-800/95 rounded-2xl shadow-2xl overflow-hidden border border-white/20 dark:border-gray-700/50 backdrop-blur-lg ${
+ className={`relative bg-white/98 dark:bg-gray-800/98 rounded-2xl shadow-2xl overflow-hidden border border-white/40 dark:border-gray-700/60 backdrop-blur-2xl ${
isMinimized ? 'fixed bottom-4 right-4' : 'w-full max-w-6xl h-[90vh]'
}`}
onClick={(e) => e.stopPropagation()}
>
{/* Header */}