Procházet zdrojové kódy

UI: #8712 仪表盘DashBoard标题样式微调

jackhoo_98 před 3 roky
rodič
revize
083e5ad444

+ 1 - 0
src/components/DashBoard/index.less

@@ -13,6 +13,7 @@
 }
 
 .title {
+  margin: auto;
   font-weight: bold;
   font-size: 16px;
 }

+ 2 - 2
src/pages/iot-card/Dashboard/index.tsx

@@ -344,8 +344,8 @@ const Dashboard = () => {
           />
         </div>
         <div className={styles['total-echarts-right']}>
-          <div className={styles.topName} style={{ height: 50 }}>
-            <span>流量使用TOP10</span>
+          <div className={styles.topName} style={{ height: 32 }}>
+            <span style={{ marginTop: 3.5 }}>流量使用TOP10</span>
             <div>
               {
                 // @ts-ignore