Browse Source

Merge branch 'bug_fix_220525_style' of DeNet/de-net into master

修复红包主体金额样式过大
wenliming 2 years ago
parent
commit
de8f116973
3 changed files with 5 additions and 4 deletions
  1. 1 1
      src/http/configAPI.js
  2. 1 1
      src/manifest.json
  3. 3 2
      src/view/components/font-amount.vue

+ 1 - 1
src/http/configAPI.js

@@ -1,4 +1,4 @@
-export const appVersionCode = 4
+export const appVersionCode = 5
 
 const api = {
 	production: 'https://api.denetme.net',

+ 1 - 1
src/manifest.json

@@ -2,7 +2,7 @@
     "manifest_version": 3,
     "name": "DeNet",
     "description": "Growing more twitter followers with Denet",
-    "version": "1.0.4",
+    "version": "1.0.5",
     "background": {
         "service_worker": "/js/background.js"
     },

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

@@ -1,7 +1,7 @@
 <template>
     <div :style="{ fontSize: amount_font_size + 'px' }">
         <a-tooltip :title="amount" >
-           <span class="content">{{ getBit(amount) }}</span>
+            <span class="content" :style="{ fontSize: amount_font_size + 'px' }">{{ getBit(amount) }}</span>
         </a-tooltip>
     </div>
 </template>
@@ -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;
 }