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,
+ }}
>
- Estimate Rows: {toFixed(nodeDatum.estRows, 2)} + Estimate Rows: {toFixed(nodeDatum.estRows, 0)}
Run at: {nodeDatum.storeType} @@ -29,9 +29,11 @@ export const DefaultNodeDetail = (nodeDetailProps) => {
Duration: {nodeDatum.duration}
-- Cost: {toFixed(nodeDatum.cost, 5)} -
+ {nodeDatum.cost && ( ++ Cost: {toFixed(nodeDatum.cost, 0)} +
+ )}Disk Bytes: {nodeDatum.diskBytes}
diff --git a/ui/lib/components/TreeDiagram/Thumbnail/index.module.less b/ui/lib/components/TreeDiagram/Thumbnail/index.module.less index 82b08f81a2..6e74c366de 100644 --- a/ui/lib/components/TreeDiagram/Thumbnail/index.module.less +++ b/ui/lib/components/TreeDiagram/Thumbnail/index.module.less @@ -1,5 +1,11 @@ .ThumbnailContainer { - :hover { + padding: 2rem 10rem; + margin: 2rem; + transition: all 0.2s ease-in-out; + box-shadow: rgb(0 0 0 / 10%) 0px 5px 10px 0px; + + &:hover { cursor: pointer; + box-shadow: rgb(0 0 0 / 15%) 0px 5px 15px 0px; } } diff --git a/ui/lib/components/TreeDiagram/TreeDiagram.tsx b/ui/lib/components/TreeDiagram/TreeDiagram.tsx index 8556e21388..e4f2486b89 100644 --- a/ui/lib/components/TreeDiagram/TreeDiagram.tsx +++ b/ui/lib/components/TreeDiagram/TreeDiagram.tsx @@ -271,13 +271,13 @@ const TreeDiagram = ({ setAdjustPosition({ width: - widthRatio > 1 + k > 1 ? (multiTreesViewport.width - multiTreesBound.width) / 2 - : 0, + : (multiTreesViewport.width - multiTreesBound.width * k) / 2, height: - heightRation > 1 + k > 1 ? (multiTreesViewport.height - multiTreesBound.height) / 2 - : 0, + : (multiTreesViewport.height - multiTreesBound.height * k) / 2, }) } @@ -318,7 +318,7 @@ const TreeDiagram = ({ adjustPosition={adjustPosition} zoomToFitViewportScale={zoomToFitViewportScale} /> - {showMinimap && ( + {showMinimap && multiTreesViewport.height && (