shaogen1995 5 天之前
父節點
當前提交
9c6b29d859
共有 2 個文件被更改,包括 9 次插入1 次删除
  1. 6 0
      src/pages/Zother/EditTop/index.module.scss
  2. 3 1
      src/pages/Zother/EditTop/index.tsx

+ 6 - 0
src/pages/Zother/EditTop/index.module.scss

@@ -59,7 +59,13 @@
             line-height: 60px;
           }
           .Edtop1rr2Txt {
+            width: calc(100% - 150px);
             color: var(--txtColor);
+            text-align: center;
+
+            overflow: hidden;
+            text-overflow: ellipsis;
+            white-space: nowrap;
           }
         }
       }

+ 3 - 1
src/pages/Zother/EditTop/index.tsx

@@ -214,7 +214,9 @@ function EditTop({ rowArr, pageTxt, APIobj, fileUpInfo, moreDom }: Props) {
                         src={snaps[0].thumb || snaps[0].thumbPc}
                         srcBig={snaps[0].thumbPc || snaps[0].thumb}
                       />
-                      <div className='Edtop1rr2Txt'>{snaps[0]?.num + ' - ' + snaps[0]?.name}</div>
+                      <div className='Edtop1rr2Txt' title={snaps[0].num + ' - ' + snaps[0].name}>
+                        {snaps[0].num + ' - ' + snaps[0].name}
+                      </div>
                       <div>
                         <Button
                           type='text'