mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
16ede0c219
- Replace DOM queries during resize with cached parent width using useRef - Fix asymmetric resize logic that only affected 2 containers - Implement proper constraint validation with total width preservation - Improve resize constraints: 5% min, 80% max (more flexible than 10%/90%) - Add array-based width management for consistent container ordering - Ensure total width always stays at 100% with 0.1% tolerance - Add data-bento-container attribute for reliable DOM queries - Optimize performance by eliminating DOM queries during mouse moves Resolves issue where resizing BentoBox containers was janky in one direction due to performance bottlenecks and asymmetric constraint logic. Resizing should now be smooth and consistent in both directions.