mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-09 00:14:30 +08:00
[Bugfix]zookeeper页面leader节点显示异常(#873)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { useParams } from 'react-router-dom';
|
||||
import CardBar, { healthDataProps } from './index';
|
||||
import { Utils } from 'knowdesign';
|
||||
import { Tooltip, Utils } from 'knowdesign';
|
||||
import api from '@src/api';
|
||||
import { HealthStateEnum } from '../HealthState';
|
||||
|
||||
@@ -81,7 +81,22 @@ const ZookeeperCard = () => {
|
||||
{
|
||||
title: 'Leader',
|
||||
value() {
|
||||
return <span style={{ fontSize: 24 }}>{leaderNode || '-'}</span>;
|
||||
return (
|
||||
<Tooltip title={leaderNode}>
|
||||
<span
|
||||
style={{
|
||||
fontSize: 24,
|
||||
overflow: 'hidden',
|
||||
display: 'block',
|
||||
width: '100%',
|
||||
whiteSpace: 'nowrap',
|
||||
textOverflow: 'ellipsis',
|
||||
}}
|
||||
>
|
||||
{leaderNode || '-'}
|
||||
</span>
|
||||
</Tooltip>
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -89,6 +89,7 @@
|
||||
margin-top: 5px;
|
||||
.num {
|
||||
font-family: DIDIFD-Medium;
|
||||
overflow: hidden;
|
||||
}
|
||||
.sub-title {
|
||||
font-family: @font-family;
|
||||
|
||||
Reference in New Issue
Block a user