复用内联选项按钮收口缩放入口

编辑器顶部缩放百分比触发器改为复用 PlatformInlineOptionButton。

保留缩放入口局部尺寸和 hover 视觉覆盖,移除重复混入编辑器图标按钮基础规则。

补充编辑器测试断言共享按钮原语,并更新 TRACKING。
This commit is contained in:
2026-06-14 15:37:27 +08:00
parent d4ceb084c9
commit d70ffa7d30
4 changed files with 17 additions and 7 deletions

View File

@@ -591,7 +591,9 @@ describe('ImageCanvasEditorView', () => {
it('adds assets from the sidebar and supports zoom buttons', () => {
render(<ImageCanvasEditorView />);
expect(screen.getByRole('button', { name: '当前缩放比例 82%' })).toBeTruthy();
expect(
screen.getByRole('button', { name: '当前缩放比例 82%' }).className,
).toContain('platform-inline-option-button');
fireEvent.click(screen.getByRole('button', { name: '当前缩放比例 82%' }));
fireEvent.click(screen.getByRole('menuitem', { name: '放大' }));