mirror of
https://github.com/penpot/penpot.git
synced 2026-11-26 21:00:32 +00:00
* 🐛 Keep fitted content clear of the rulers Fit actions pass padding in document units, so the margin on screen shrinks with the zoom. On large designs the margin became smaller than the fixed 22px ruler overlay and part of the content was hidden under it. Add a :min-screen-padding option to adjust-to-viewport. The existing design-space padding is kept when it already leaves enough margin on screen; otherwise the viewport is fitted again with a fixed screen margin. Use it in fit-to-all, fit-to-selected and fit-to-shapes so all fit paths behave the same at any zoom level. Closes #12609 AI-assisted-by: deepseek-v4.1-flash * 🐛 Keep page-open fits clear of rulers Pass the minimum screen padding when initializing the viewport, and cover all four fit margins for wide and tall content with the call-site minimum zoom. AI-assisted-by: gpt-6-luna