|
@@ -509,9 +509,12 @@ const selectCurrency = (params) => {
|
|
|
|
|
|
const calcDomZoom = () => {
|
|
const calcDomZoom = () => {
|
|
nextTick(() => {
|
|
nextTick(() => {
|
|
|
|
+ let maxWidth = 68;
|
|
var textWidth = document.querySelector('.text').offsetWidth;
|
|
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;
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|