quadratichq / quadratic

Quadratic | Technical Spreadsheet with Python, SQL, and AI
https://QuadraticHQ.com
Other
2.8k stars 140 forks source link

Default numbers don't fit in cells #1468

Open luke-quadratic opened 1 week ago

luke-quadratic commented 1 week ago

Image

davidfig commented 17 hours ago

This is a bit complicated. We'll have to move the number rendering (ie, determining what the string of the number looks like from its options and values) from Rust to TS, since we'll need to adjust how it's displayed based on its actual rendering size, which we can only calculate while rendering.

I started prototyping this work, but I'd rather wait until https://github.com/quadratichq/quadratic/pull/1406 (vertical wrapping) is merged, as I'l touch similar files to that one.