mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
adjust font size
This commit is contained in:
1 parent
0310c26edd
commit
1f338dfd2b
21 files changed
+173
-54
No files matched your search
@@ -0,0 +1,14 @@
|
||||
export default class extends HTMLElement {
|
||||
connectedCallback () {
|
||||
this.image.addEventListener('load', (e) => {
|
||||
this.image.setAttribute('width', e.target.naturalWidth)
|
||||
this.image.setAttribute('height', e.target.naturalHeight)
|
||||
|
||||
this.style.aspectRatio = `${e.target.naturalWidth} / ${e.target.naturalHeight}`
|
||||
})
|
||||
}
|
||||
|
||||
get image () {
|
||||
return this.querySelector('img')
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user