Procházet zdrojové kódy

Fix tooltip for last updated date in projects list (#18715)

GitOrigin-RevId: 55feb364a108397a672cb7c118805988f3335e69
Alf Eaton před 2 roky
rodič
revize
826d7822e0

+ 2 - 2
services/web/frontend/js/features/project-list/components/table/cells/last-updated-by.tsx

@@ -12,11 +12,11 @@ export const LastUpdatedBy: FC<{
   const userName = getUserName(lastUpdatedBy)
   const userName = getUserName(lastUpdatedBy)
 
 
   return (
   return (
-    <span>
+    <>
       {t('last_updated_date_by_x', {
       {t('last_updated_date_by_x', {
         lastUpdatedDate,
         lastUpdatedDate,
         person: userName === 'You' ? t('you') : userName,
         person: userName === 'You' ? t('you') : userName,
       })}
       })}
-    </span>
+    </>
   )
   )
 }
 }

+ 6 - 4
services/web/frontend/js/features/project-list/components/table/cells/last-updated-cell.tsx

@@ -19,10 +19,12 @@ export default function LastUpdatedCell({ project }: LastUpdatedCellProps) {
       overlayProps={{ placement: 'top', trigger: ['hover', 'focus'] }}
       overlayProps={{ placement: 'top', trigger: ['hover', 'focus'] }}
     >
     >
       {project.lastUpdatedBy ? (
       {project.lastUpdatedBy ? (
-        <LastUpdatedBy
-          lastUpdatedBy={project.lastUpdatedBy}
-          lastUpdatedDate={lastUpdatedDate}
-        />
+        <span>
+          <LastUpdatedBy
+            lastUpdatedBy={project.lastUpdatedBy}
+            lastUpdatedDate={lastUpdatedDate}
+          />
+        </span>
       ) : (
       ) : (
         <span>{lastUpdatedDate}</span>
         <span>{lastUpdatedDate}</span>
       )}
       )}