mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
🐛 Fix scroll and positioning on viewer.
This commit is contained in:
parent
b563ab445c
commit
0a1d6f1bdb
2 changed files with 9 additions and 5 deletions
|
@ -17,4 +17,9 @@
|
|||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-flow: wrap;
|
||||
|
||||
svg {
|
||||
transform-origin: center;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,13 +86,12 @@
|
|||
(gmt/translate-matrix))
|
||||
frame (assoc frame :displacement-modifier modifier)
|
||||
|
||||
transform (str "scale(" zoom ")")]
|
||||
|
||||
width (* (:width frame) zoom)
|
||||
height (* (:height frame) zoom)]
|
||||
|
||||
[:svg {:view-box (str "0 0 " (:width frame 0) " " (:height frame 0))
|
||||
:width (:width frame)
|
||||
:height (:height frame)
|
||||
:transform transform
|
||||
:width width
|
||||
:height height
|
||||
:version "1.1"
|
||||
:xmlnsXlink "http://www.w3.org/1999/xlink"
|
||||
:xmlns "http://www.w3.org/2000/svg"}
|
||||
|
|
Loading…
Reference in a new issue