Skip to content

Commit 1762f85

Browse files
authored
Reduce gap between subsequent header buttons (#2765)
1 parent d370a3f commit 1762f85

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.changeset/dull-chefs-talk.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'gitbook': patch
3+
---
4+
5+
Reduce gap between subsequent header buttons

packages/gitbook/src/components/Header/HeaderLinks.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function HeaderLinks({ children }: HeaderLinksProps) {
1313
<div
1414
className={tcls(
1515
styles.containerHeaderlinks,
16-
'grow shrink flex justify-end items-center gap-x-4 lg:gap-x-6 min-w-9 z-20',
16+
'grow shrink flex justify-end items-center gap-x-4 lg:gap-x-6 min-w-9 z-20 lg:[&>.button+.button]:-ml-2',
1717
)}
1818
>
1919
{children}

packages/gitbook/src/components/primitives/Button.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export function Button({
6262
const sizeClasses = sizes[size] || sizes.default;
6363

6464
const domClassName = tcls(
65+
'button',
6566
'inline-block',
6667
'rounded-md',
6768
'straight-corners:rounded-none',

0 commit comments

Comments
 (0)