adjust font resize

This commit is contained in:
Pete Matsyburka
2024-07-26 17:58:00 +03:00
parent 8f975c2898
commit b94e6bf54a
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
window.customElements.define('autosize-field', class extends HTMLElement {
connectedCallback() {
if (this.field.scrollHeight > this.field.clientHeight) {
this.field.classList.remove('text-[1.5vw]', 'lg:text-base');
this.field.classList.remove('text-[1.6vw]', 'lg:text-base');
this.field.classList.add('text-[1.0vw]', 'lg:text-[0.70rem]');
if (this.field.scrollHeight > this.field.clientHeight) {