adjust font resize

This commit is contained in:
Pete Matsyburka committed 2024-07-26 17:58:00 +03:00
1 parent 8f975c2898
commit b94e6bf54a
4 files changed
+6 -6

No files matched your search

+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) {