From 4dbf3588d99acc298915c2cce82dc13b0f0c111c Mon Sep 17 00:00:00 2001 From: ccloli <8115912+ccloli@users.noreply.github.com> Date: Tue, 6 Aug 2024 15:01:47 +0800 Subject: [PATCH] fix: fix toggle button text wrapping --- packages/designer/src/toolbar/route-switch.tsx | 2 ++ packages/ui/src/toggle-button.tsx | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/designer/src/toolbar/route-switch.tsx b/packages/designer/src/toolbar/route-switch.tsx index 369485f..049c5eb 100644 --- a/packages/designer/src/toolbar/route-switch.tsx +++ b/packages/designer/src/toolbar/route-switch.tsx @@ -53,6 +53,8 @@ function PageSelect({ value, onSelect, onRemove, onUpdate, onCopy, options }: Pa - + {/* @ts-ignore textOverflow is available */} + {icon && ( {icon}