🐛 Fix zoom to fit all didn't fit all (#5673)

This commit is contained in:
Aitor Moreno 2025-02-04 11:00:46 +01:00 committed by GitHub
parent a5dc9eb458
commit dbf7b94651
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 205956 additions and 1 deletions

View file

@ -90,7 +90,7 @@
state
(update state :workspace-local
(fn [{:keys [vport] :as local}]
(let [srect (gal/adjust-to-viewport vport srect {:padding 40})
(let [srect (gal/adjust-to-viewport vport srect {:padding 160})
zoom (/ (:width vport) (:width srect))]
(-> local
(assoc :zoom zoom)