Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/next-13.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
repo-ranger[bot] committed Mar 15, 2024
2 parents 0bca693 + 2402b61 commit 60a7165
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ class Editor extends React.Component {
const width = node.offsetWidth * exportSize
const height = squared ? node.offsetWidth * exportSize : node.offsetHeight * exportSize

const transformOrigin = window.navigator.userAgent.indexOf('Safari') !== -1 ? '0 50%' : 'center'

const config = {
style: {
transform: `scale(${exportSize})`,
'transform-origin': transformOrigin,
transformOrigin: 'top left',
background: squared ? this.state.backgroundColor : 'none',
alignItems: 'start',
justifyContent: 'start',
},
filter: n => {
if (n.className) {
Expand Down

0 comments on commit 60a7165

Please sign in to comment.