Reduce gap between subsequent header buttons (#2765)

This commit is contained in:
Zeno Kapitein
2025-01-23 14:10:47 +01:00
committed by GitHub
parent d370a3f0e3
commit 1762f85ef9
3 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'gitbook': patch
---
Reduce gap between subsequent header buttons
@@ -13,7 +13,7 @@ export async function HeaderLinks({ children }: HeaderLinksProps) {
<div
className={tcls(
styles.containerHeaderlinks,
'grow shrink flex justify-end items-center gap-x-4 lg:gap-x-6 min-w-9 z-20',
'grow shrink flex justify-end items-center gap-x-4 lg:gap-x-6 min-w-9 z-20 lg:[&>.button+.button]:-ml-2',
)}
>
{children}
@@ -62,6 +62,7 @@ export function Button({
const sizeClasses = sizes[size] || sizes.default;
const domClassName = tcls(
'button',
'inline-block',
'rounded-md',
'straight-corners:rounded-none',