@@ -530,29 +530,41 @@ const List: React.FC = () => {
530530 }
531531 } ) ( ) }
532532 </ Tooltip >
533- { record . provider === - 1 && (
534- < Tooltip title = { t ( 'task_type.cloud' ) } >
535- < CloudOutlined style = { { color : '#1890ff' } } />
536- </ Tooltip >
537- ) }
538533 </ Space >
539534 ) ,
540535 } ,
541536 {
542537 title : t ( 'columns.model' ) ,
543538 dataIndex : "model_name" ,
544539 width : 240 ,
545- render : ( text : string ) => (
546- < Text
540+ render : ( text : string , record : Task ) => (
541+ < div
547542 style = { {
548543 maxWidth : "240px" ,
549- overflow : "hidden " ,
550- textOverflow : "ellipsis " ,
551- whiteSpace : "nowrap " ,
544+ display : "flex " ,
545+ alignItems : "center " ,
546+ gap : "4px " ,
552547 } }
553548 >
554- { text }
555- </ Text >
549+ < Text
550+ style = { {
551+ maxWidth : record . provider === - 1 ? "216px" : "240px" ,
552+ overflow : "hidden" ,
553+ textOverflow : "ellipsis" ,
554+ whiteSpace : "nowrap" ,
555+ display : "inline-block" ,
556+ } }
557+ >
558+ { text }
559+ </ Text >
560+ { record . provider === - 1 && (
561+ < Tooltip title = { t ( 'task_type.cloud' ) } >
562+ < span style = { { display : "inline-flex" , alignItems : "center" } } >
563+ < CloudOutlined style = { { color : "#1890ff" } } />
564+ </ span >
565+ </ Tooltip >
566+ ) }
567+ </ div >
556568 ) ,
557569 } ,
558570 {
@@ -571,11 +583,15 @@ const List: React.FC = () => {
571583 title : t ( 'columns.status' ) ,
572584 dataIndex : "status" ,
573585 width : 100 ,
574- render : ( status : number , record : Task ) => {
586+ render : ( status : number , record : Task | CloudTask ) => {
575587 const tag = < Tag color = { getStatusColor ( status ) } > { getStatusText ( status ) } </ Tag > ;
576- // Show error tooltip for failed status
577- if ( status === 0 && record . error ) {
578- return < Tooltip title = { record . error } > { tag } </ Tooltip > ;
588+ const failedReason =
589+ record . error ||
590+ ( 'error_message' in record ? record . error_message : undefined ) ||
591+ ( 'description' in record ? record . description : undefined ) ;
592+ // Show tooltip for failed/partial-failed tasks if backend provides reason
593+ if ( ( status === 0 || status === 8 ) && failedReason ) {
594+ return < Tooltip title = { failedReason } > { tag } </ Tooltip > ;
579595 }
580596 return tag ;
581597 } ,
0 commit comments