[feat] Support empty numeric inputs & UI improvements for real app

This commit is contained in:
He
2026-06-16 19:00:03 +08:00
parent b926a6e30d
commit b86716e952
7 changed files with 183 additions and 87 deletions
+2 -1
View File
@@ -7,7 +7,7 @@ interface NumberBallProps {
number: number
state: "idle" | "highlighted" | "used"
colorIndex?: number
size?: "normal" | "large"
size?: "normal" | "large" | "xlarge"
dimmed?: boolean
}
@@ -34,6 +34,7 @@ export function NumberBall({ number, state, colorIndex, size = "normal", dimmed
"flex items-center justify-center font-mono select-none transition-all duration-150",
size === "normal" && "w-8 h-8 text-sm",
size === "large" && "w-14 h-14 text-lg",
size === "xlarge" && "w-16 h-16 text-xl",
dimmed && !isHighlighted && "opacity-30",
)}
style={{