Bladeren bron

修改右侧推送滚动条

zhangxc 6 jaren geleden
bovenliggende
commit
082b60e121
3 gewijzigde bestanden met toevoegingen van 12 en 12 verwijderingen
  1. 2 2
      src/components/ChronicInfo/index.less
  2. 7 7
      src/components/PushItems/index.jsx
  3. 3 3
      src/components/PushItems/index.less

+ 2 - 2
src/components/ChronicInfo/index.less

@@ -14,7 +14,7 @@
   }
   .tips-title{
     .tips-name{
-      width: 255px;
+      width: 238px;
       display: inline-block;
     }
     h2{
@@ -267,7 +267,7 @@
     text-align: center;
     color: #fff;
     // background: #DBDBDB;
-    background: #DFEAFE;
+    background: #3B9ED0;
     border-radius: 4px;
     cursor: auto;
     margin-top: 15px;

+ 7 - 7
src/components/PushItems/index.jsx

@@ -162,9 +162,9 @@ class PushItems extends Component {
     let assayNum2 = 0; 
     let assayHide = assay.map((item, index) => {
       assayNum = assayNum + item.name.length + 2;
-      if (assayNum > 28) {
+      if (assayNum > 26) {
         assayNum2 = assayNum2 + item.name.length + 2; 
-        if(assayNum2 > 21) {
+        if(assayNum2 > 20) {
           return;
         } else {
           return (
@@ -214,9 +214,9 @@ class PushItems extends Component {
     let checkNum2 = 0;
     let checkHide = check.map((item, index) => {
       checkNum = checkNum + item.name.length + 2;
-      if (checkNum > 28) {
+      if (checkNum > 26) {
         checkNum2 = checkNum2 + item.name.length + 2; 
-        if(checkNum2 > 21) {
+        if(checkNum2 > 20) {
           return;
         }else {
           return (
@@ -270,7 +270,7 @@ class PushItems extends Component {
     return (
       <div className={style["push-content-wrapper"]}>
         <div className={style["push-content"]} ref={this.$cont}>
-          <div style = {{width: '420px'}}>
+          <div style = {{width: '410px'}}>
             {vigilant && vigilant.length > 0 && (
               <div className={style["vigilant"]}>
                 <div className={style["title"]}>
@@ -288,7 +288,7 @@ class PushItems extends Component {
                 icon={doubtImg}
                 title="疑似诊断"
                 diagList={doubt}
-                maxShowNum={26}
+                maxShowNum={24}
               />
             )}
             {possible && possible.length > 0 && (
@@ -297,7 +297,7 @@ class PushItems extends Component {
                 icon={possibleImg}
                 title="可能诊断"
                 diagList={possible}
-                maxShowNum={26}
+                maxShowNum={24}
               />
             )}
             <div className={style["diagnose"]}>

+ 3 - 3
src/components/PushItems/index.less

@@ -6,8 +6,8 @@
   width: @push-width;
   overflow: hidden;
   .push-content {
-    width: 467px;
-    overflow-y: scroll;
+    width: 436px;
+    overflow-y: auto;
   }
   .vigilant{
     background: #FF8D54;
@@ -144,7 +144,7 @@
           }
           .content{
             float: left;
-            width: 359px;
+            width: 349px;
             line-height: 26px;
             padding: 0px 0px 0px 0px;
             span{