Skip to content

Commit fd4a293

Browse files
committed
fix(ui): align inbox PR header actions
Pre-commit hook ran. Total eslint: 0, total circular: 0
1 parent 5cbfd82 commit fd4a293

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/modules/shared/layouts/blocks/DetailTabStrip.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ describe("DetailTabStrip", () => {
6060
);
6161

6262
expect(markup).toContain(">Filter</button>");
63+
expect(markup).toMatch(/role="tablist"[^>]*\bpl-3\b[^>]*\bpr-\[7px\]/);
6364
});
6465

6566
it("embeds tabs in a header without creating another bordered row", () => {
@@ -75,6 +76,7 @@ describe("DetailTabStrip", () => {
7576
);
7677

7778
expect(markup).toContain("h-10 min-w-0");
79+
expect(markup).not.toContain("pr-[7px]");
7880
expect(markup).not.toContain("overflow-x-auto");
7981
expect(markup).not.toMatch(/role="tablist"[^>]*border-b/);
8082
expect(markup).toMatch(

src/modules/shared/layouts/blocks/DetailTabStrip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function DetailTabStrip<Key extends string>({
4444
className={`flex shrink-0 items-end gap-px ${
4545
isHeaderVariant
4646
? "h-10 min-w-0"
47-
: "border-b border-border-2 bg-bg-2 px-3"
47+
: "border-b border-border-2 bg-bg-2 pl-3 pr-[7px]"
4848
} ${className}`.trim()}
4949
>
5050
{tabs.map((tab) => {

0 commit comments

Comments
 (0)