add extra small field font size

This commit is contained in:
Pete Matsyburka committed 2024-03-20 16:52:53 +02:00
1 parent 432f290633
commit dec33b4331
2 files changed
+14

No files matched your search

@@ -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() {