Sha256: c0d195a5f507469ad9e867d08ca17b4090b1a38c6047a4063089f8b8507726c7
Contents?: true
Size: 403 Bytes
Versions: 6
Compression:
Stored size: 403 Bytes
Contents
import { Controller } from 'stimulus' export default class extends Controller { connect() { this.element.addEventListener('load', () => { setTimeout(() => { let height = this.element.contentDocument.querySelector('[data-maglev-section-id]').clientHeight if (height < 200) height = 200 this.element.style.height = `${height}px` }, 500) }) } }
Version data entries
6 entries across 6 versions & 1 rubygems