fix(levels): reduce max scale factor to allow more compact container
Changed maximum scale factor from 3.0 to 2.0 for small Kyu abacuses. This allows for a more compact fixed-height container while still providing appropriate visual scaling across all levels. Scale factor range is now 1.5 to 2.0, creating a 1.33x size difference instead of the previous 2.0x difference. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -127,8 +127,8 @@ export default function LevelsPage() {
|
||||
|
||||
// Calculate scale factor based on number of columns to fit the page
|
||||
// Use constrained range to prevent huge size differences between levels
|
||||
// Min 1.5 (for 30-column Dan levels) to Max 3.0 (for 2-column Kyu levels)
|
||||
const scaleFactor = Math.max(1.5, Math.min(3.0, 20 / currentLevel.digits))
|
||||
// Min 1.5 (for 30-column Dan levels) to Max 2.0 (for 2-column Kyu levels)
|
||||
const scaleFactor = Math.max(1.5, Math.min(2.0, 20 / currentLevel.digits))
|
||||
|
||||
// Animate scale factor with React Spring for smooth transitions
|
||||
const animatedProps = useSpring({
|
||||
|
||||
Reference in New Issue
Block a user