From 3954e445f331ee8e269c5bb3f74af7d8c196d322 Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Tue, 17 Mar 2026 14:43:46 -0400 Subject: [PATCH] fix(ui): keep provider names readable --- ui/src/components/profiles/profile-create-dialog.tsx | 11 ++++++++--- .../profiles/profile-create-dialog.test.tsx | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ui/src/components/profiles/profile-create-dialog.tsx b/ui/src/components/profiles/profile-create-dialog.tsx index c95dfc00..00f68aa7 100644 --- a/ui/src/components/profiles/profile-create-dialog.tsx +++ b/ui/src/components/profiles/profile-create-dialog.tsx @@ -725,12 +725,17 @@ function CompactPresetCard({
-
-
{preset.name}
+
+
+ {preset.name} +
{preset.badge && ( {preset.badge} diff --git a/ui/tests/unit/components/profiles/profile-create-dialog.test.tsx b/ui/tests/unit/components/profiles/profile-create-dialog.test.tsx index 6633e771..fb1f276b 100644 --- a/ui/tests/unit/components/profiles/profile-create-dialog.test.tsx +++ b/ui/tests/unit/components/profiles/profile-create-dialog.test.tsx @@ -34,6 +34,7 @@ describe('ProfileCreateDialog', () => { ); expect(screen.getByText('Featured Providers')).toBeInTheDocument(); + expect(screen.getByText('Alibaba Coding Plan')).not.toHaveClass('truncate'); const morePresetsToggle = screen.getByRole('button', { name: /More Presets/i }); expect(morePresetsToggle).toHaveAttribute('aria-expanded', 'false'); expect(document.body.querySelectorAll('.overflow-x-auto')).toHaveLength(1);