mirror of
https://github.com/penpot/penpot.git
synced 2025-07-02 22:37:17 +02:00
🐛 Fix zoom to fit all didn't fit all (#5673)
This commit is contained in:
parent
a5dc9eb458
commit
dbf7b94651
3 changed files with 205956 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue