wenliming 3 anni fa
parent
commit
b7d05b8ee8
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      src/view/components/give-dialog.vue

+ 5 - 2
src/view/components/give-dialog.vue

@@ -509,9 +509,12 @@ const selectCurrency = (params) => {
 
 const calcDomZoom = () => {
     nextTick(() => {
+        let maxWidth = 68;
         var textWidth = document.querySelector('.text').offsetWidth;
-        var scale = 68 / textWidth;
-        document.querySelector('.text').style.zoom = scale;
+        if(textWidth > 68) {
+            var scale = maxWidth / textWidth;
+            document.querySelector('.text').style.zoom = scale;
+        }
     }) 
 }