feat: special agreements for disposition

This commit is contained in:
Björn Fromme
2024-04-04 13:06:35 +02:00
parent 4d1ea7aad7
commit 26239488ba
19 changed files with 310 additions and 31 deletions
@@ -0,0 +1,12 @@
import { Controller } from '@hotwired/stimulus'
export default class extends Controller {
connect() {
this.element.style.height = 'auto'
this.resize()
}
resize() {
this.element.style.height = `${this.element.scrollHeight}px`
}
}