add extra small field font size

This commit is contained in:
Pete Matsyburka
2024-03-20 16:52:47 +02:00
parent 432f290633
commit dec33b4331
2 changed files with 14 additions and 0 deletions
@@ -5,6 +5,10 @@
if (this.field.scrollHeight > this.field.clientHeight) {
this.field.classList.remove('text-[1.5vw]', 'lg:text-base');
this.field.classList.add('text-[1.0vw]', 'lg:text-[0.70rem]');
if (this.field.scrollHeight > this.field.clientHeight) {
this.field.classList.add('text-[0.8vw]', 'lg:text-[0.50rem]');
}
}
}
get field() {