This is an automated email from the ASF dual-hosted git repository. zqr10159 pushed a commit to branch 2.0.0 in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
commit eb5c666d8d050defc9dfd9fb164f5534e9c1540c Author: Logic <[email protected]> AuthorDate: Fri May 29 21:36:10 2026 +0800 test(web-next): align topology toolbar fit metadata --- web-next/packages/hertzbeat-ui/src/topology-g6.test.tsx | 4 ++-- web-next/packages/hertzbeat-ui/src/topology-g6.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web-next/packages/hertzbeat-ui/src/topology-g6.test.tsx b/web-next/packages/hertzbeat-ui/src/topology-g6.test.tsx index 11ebfd8f5d..8e675129e8 100644 --- a/web-next/packages/hertzbeat-ui/src/topology-g6.test.tsx +++ b/web-next/packages/hertzbeat-ui/src/topology-g6.test.tsx @@ -917,9 +917,9 @@ describe('@hertzbeat/ui topology G6 canvas', () => { expect(html).toContain('data-hz-topology-g6-action-behavior="zoom-scale"'); expect(html).toContain('data-hz-topology-g6-action="zoom-in"'); expect(html).toContain('data-hz-topology-g6-action="fit-view"'); - expect(html).toContain('data-hz-topology-g6-action-behavior="fit-and-center"'); + expect(html).toContain('data-hz-topology-g6-action-behavior="overflow-fit-and-center"'); expect(html).toContain('data-hz-topology-g6-action="reset-view"'); - expect(html).toContain('data-hz-topology-g6-action-behavior="zoom-fit-center"'); + expect(html).toContain('data-hz-topology-g6-action-behavior="zoom-one-overflow-fit-center"'); expect(html).toContain('data-hz-topology-g6-action="focus-selected-node"'); expect(html).toContain('data-hz-topology-g6-action-target="scale-svc-000"'); expect(html).toContain('data-hz-topology-g6-action="focus-search-result"'); diff --git a/web-next/packages/hertzbeat-ui/src/topology-g6.tsx b/web-next/packages/hertzbeat-ui/src/topology-g6.tsx index 57fe3556f6..b590d2c5e1 100644 --- a/web-next/packages/hertzbeat-ui/src/topology-g6.tsx +++ b/web-next/packages/hertzbeat-ui/src/topology-g6.tsx @@ -2210,7 +2210,7 @@ export function HzTopologyG6Canvas({ data-hz-topology-g6-action="fit-view" data-hz-topology-g6-action-owner="hertzbeat-ui-g6-action" data-hz-topology-g6-action-state="ready" - data-hz-topology-g6-action-behavior="fit-and-center" + data-hz-topology-g6-action-behavior="overflow-fit-and-center" data-hz-topology-g6-action-target="viewport" onClick={fitView} > @@ -2224,7 +2224,7 @@ export function HzTopologyG6Canvas({ data-hz-topology-g6-action="reset-view" data-hz-topology-g6-action-owner="hertzbeat-ui-g6-action" data-hz-topology-g6-action-state="ready" - data-hz-topology-g6-action-behavior="zoom-fit-center" + data-hz-topology-g6-action-behavior="zoom-one-overflow-fit-center" data-hz-topology-g6-action-target="viewport" onClick={resetView} > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
