浏览代码

修改样式

Renxy 1 年之前
父节点
当前提交
2d9a4d0d28
共有 3 个文件被更改,包括 5 次插入4 次删除
  1. 2 2
      src/global.less
  2. 2 2
      src/pages/Controller/Device.js
  3. 1 0
      src/pages/SmartReport/index.less

+ 2 - 2
src/global.less

@@ -298,12 +298,12 @@ input[type='reset'] {
   font-size: 0.26rem;
 }
 .ant-select-selector {
-  height: 0.4rem;
+  // height: 0.4rem;
   padding: 0.04rem 0.11rem;
 }
 
 .ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
-  height: 0.4rem;
+  // height: 0.4rem;
   padding: 0.04rem 0.11rem;
 }
 .ant-select-single .ant-select-selector {

+ 2 - 2
src/pages/Controller/Device.js

@@ -34,7 +34,7 @@ function Hardware() {
 
     return `${styles.icon} ${statusClassName}`;
   });
-  const onHandleClick = item => {
+  const onHandleClick = (item) => {
     UnityAction.sendMsg('SingleDevLocate', JSON.stringify([item]));
   };
   useEffect(() => {
@@ -56,7 +56,7 @@ function Hardware() {
       {data?.list?.map((item) => (
         <div
           key={item.id}
-          className={`card-box ${styles.item}`}
+          className={`card-box ${styles.itemLong}`}
           style={{ justifyContent: 'space-between' }}
           onClick={() => onHandleClick(item)}
         >

+ 1 - 0
src/pages/SmartReport/index.less

@@ -127,6 +127,7 @@
   }
   .longWhiteBox {
     width: 48%;
+    white-space: nowrap;
     padding: 0.02rem;
     height: 1.05rem;
     box-shadow: 0 0.05rem 0.14rem 0 rgba(141, 141, 141, 0.2);