diff --git a/ui/lib/apps/SlowQuery/pages/Detail/index.tsx b/ui/lib/apps/SlowQuery/pages/Detail/index.tsx index a968edd79b..0fa6d67bc6 100644 --- a/ui/lib/apps/SlowQuery/pages/Detail/index.tsx +++ b/ui/lib/apps/SlowQuery/pages/Detail/index.tsx @@ -174,7 +174,10 @@ function DetailPage() { onCancel={toggleVisualPlan} footer={null} destroyOnClose={true} - bodyStyle={{ background: '#f5f5f5' }} + bodyStyle={{ + background: '#f5f5f5', + height: window.innerHeight - 100, + }} > { onNodeDetailClick(node) } + const headColor = (runAt: string): string => { + switch (runAt) { + case 'tidb': + return '#FFF5EB' + case 'tikv': + return '#DEEDF0' + case 'tiflash': + return '#F4C7AB' + default: + return '' + } + } + return ( { nodeDatum.diagnosis.length > 0 && ( <> {nodeDatum.diagnosis.length} @@ -84,16 +97,20 @@ export const DefaultNode = (nodeProps) => { position: 'initial', }} onClick={(e) => handleOnNodeDetailClick(e, nodeDatum)} + headStyle={{ backgroundColor: headColor(nodeDatum.storeType) }} >
Actual Rows: {nodeDatum.actRows}
- Estimate Rows: {toFixed(nodeDatum.estRows, 2)} + Estimate Rows: {toFixed(nodeDatum.estRows)}
Run at: {nodeDatum.storeType}
+
+ Duration: {nodeDatum.duration} +
{nodeDatum.__node_attrs.collapsiable && (