lanxin 1 giorno fa
parent
commit
65dbbb6830

+ 2 - 1
src/pages/A6ybwx/Genealogy/components/Graph/index.module.scss

@@ -25,7 +25,7 @@
 }
 
 .tip {
-  width: 133px;
+  width: 233px;
   height: 40px;
   position: absolute;
   bottom: 100px;
@@ -40,6 +40,7 @@
       height: 18px;
       display: flex;
       align-items: center;
+      white-space: nowrap;
       gap: 2px;
       .txt {
         line-height: 18px;

+ 3 - 3
src/pages/A6ybwx/Genealogy/components/Graph/index.tsx

@@ -10,7 +10,7 @@ const MAIN_CONTENT_HEIGHT = 945
 const MINIMAP_SCALE = 0.045
 
 function Graph({ setCurrentNodeIndex }: { setCurrentNodeIndex: (index: number) => void }) {
-  const { myData } = useSelector((state: RootState) => state.A0Layout)
+  const { myData, myLangue } = useSelector((state: RootState) => state.A0Layout)
 
   const [isDragging, setIsDragging] = useState(false)
   const [zoom, setZoom] = useState(1)
@@ -343,11 +343,11 @@ function Graph({ setCurrentNodeIndex }: { setCurrentNodeIndex: (index: number) =
           <div className='icon'>
             <img src={require('@/assets/img/A6_gen_normal.png')} draggable='false' alt='' />
           </div>
-          <div className='txt'>为勘误之人</div>
+          <div className='txt'>{myLangue === 'ZH' ? '为勘误之人' : 'For the correction'}</div>
         </div>
         <div className='t2'>
           <RightLineDash className='t2_rightLine' />
-          <div className='txt'>为非直系父子关系</div>
+          <div className='txt'>{myLangue === 'ZH' ? '为非直系父子关系' : 'For non-direct father-son relationships'}</div>
         </div>
       </div>
       <div className={styles.miniMap}>