Kaynağa Gözat

[edit] style

A\An 2 yıl önce
ebeveyn
işleme
7d7be8b7c0
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      src/view/components/font-amount.vue

+ 2 - 1
src/view/components/font-amount.vue

@@ -30,7 +30,8 @@ watch(props, () => {
     setFontSize()
 })
 function setFontSize(){
-    let _num = parseInt(props.width / props.amount.length);
+    let amount = getBit(props.amount);
+    let _num = parseInt(props.width / amount.length);
     amount_font_size.value = _num < props.fontSize ? _num : props.fontSize;
 }