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);