From 939466648d40331800f15e886256a0789b7e7623 Mon Sep 17 00:00:00 2001 From: 864907600cc <8115912+ccloli@users.noreply.github.com> Date: Wed, 7 Aug 2024 15:51:36 +0800 Subject: [PATCH] fix: route matching without query string & toggle button wrapping (#195) * fix: fix route is not matched when url contains query string * fix: fix mode switch button group wrapping * fix: fix toggle button text wrapping --- packages/designer/src/toolbar/mode-switch.tsx | 2 +- packages/designer/src/toolbar/route-switch.tsx | 5 ++++- packages/ui/src/toggle-button.tsx | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/designer/src/toolbar/mode-switch.tsx b/packages/designer/src/toolbar/mode-switch.tsx index e92342a0..8d114b48 100644 --- a/packages/designer/src/toolbar/mode-switch.tsx +++ b/packages/designer/src/toolbar/mode-switch.tsx @@ -9,7 +9,7 @@ export const ModeSwitchTool = observer(() => { const designer = useDesigner(); return ( - + - + {/* @ts-ignore textOverflow is available */} + {icon && ( {icon}