Skip to content

Commit

Permalink
fix: set correct width and height for svg
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Dec 4, 2020
1 parent 4b73a19 commit 05e3bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/nuxt-picture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ export default {

const ratioSVG = isInherit ? h('svg', {
attrs: {
width: this.meta.width,
height: this.meta.height,
width: getInt(this.meta.width || this.width),
height: getInt(this.meta.height || this.height),
xmlns: 'http://www.w3.org/2000/svg',
version: '1.1'
}
Expand Down

0 comments on commit 05e3bfe

Please sign in to comment.