Skip to content

Commit 1b44152

Browse files
committed
style(option-list): halve receipt separator spacing
1 parent a8438e7 commit 1b44152

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

components/tool-ui/option-list/option-list.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,10 @@ function OptionListConfirmation({
185185
>
186186
{confirmedOptions.map((option, index) => (
187187
<Fragment key={option.id}>
188-
{index > 0 && <Separator className="my-3" orientation="horizontal" />}
189-
<div className="flex items-start gap-3 py-2">
188+
{index > 0 && (
189+
<Separator className="my-1.5" orientation="horizontal" />
190+
)}
191+
<div className="flex items-start gap-3 py-1">
190192
<span className="flex h-6 items-center">
191193
<Check className="text-primary size-4 shrink-0" />
192194
</span>

lib/tests/tool-ui/option-list/receipt-layout-contract.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe("option-list receipt layout contract", () => {
1010
);
1111
const source = fs.readFileSync(sourcePath, "utf8");
1212

13-
expect(source).toContain('<Separator className="my-3" orientation="horizontal" />');
14-
expect(source).toContain('className="flex items-start gap-3 py-2"');
13+
expect(source).toContain('<Separator className="my-1.5" orientation="horizontal" />');
14+
expect(source).toContain('className="flex items-start gap-3 py-1"');
1515
});
1616
});

0 commit comments

Comments
 (0)