Skip to content

Commit 2946ec0

Browse files
fix(web): preserve rounded model picker corners
Co-authored-by: maria <[email protected]>
1 parent bdbe987 commit 2946ec0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/web/src/components/chat/ChatComposer.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3106,7 +3106,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
31063106
showMobilePendingAnswerActions && "hidden sm:flex",
31073107
)}
31083108
>
3109-
<div className="-m-1 -ms-2.5 flex min-w-0 flex-1 items-center gap-1 overflow-x-auto p-1 ps-2.5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden">
3109+
<div className="-m-1 -ms-3.5 flex min-w-0 flex-1 items-center gap-1 overflow-x-auto p-1 ps-3.5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden">
31103110
{noProviderAvailable ? (
31113111
<Button
31123112
type="button"

‎apps/web/src/components/chat/composerModelPickerSpacing.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ describe("composer model picker spacing", () => {
2121
expect(composerControlSource).toContain("px-2.5");
2222
expect(modelPickerCall).toContain('triggerClassName="-ms-2.5"');
2323
expect(modelPickerCall).not.toContain("ps-0");
24-
expect(modelPickerScrollerClasses).toEqual(expect.arrayContaining(["-ms-2.5", "ps-2.5"]));
24+
expect(modelPickerScrollerClasses).toEqual(expect.arrayContaining(["-ms-3.5", "ps-3.5"]));
2525
});
2626
});

0 commit comments

Comments
 (0)