Skip to content

Commit 87eea73

Browse files
authored
Fix margin and image resolution of header logo (#2633)
1 parent 67a6fb4 commit 87eea73

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.changeset/loud-trainers-lay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'gitbook': patch
3+
---
4+
5+
Fix margin and image resolution of header logo

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,25 @@ export function HeaderLogo(props: HeaderLogoProps) {
5050
sizes={[
5151
{
5252
media: '(max-width: 1024px)',
53-
width: 128,
53+
width: 160,
5454
},
5555
{
56-
width: 192,
56+
width: 260,
5757
},
5858
]}
5959
priority="high"
6060
style={tcls(
6161
'rounded',
6262
'straight-corners:rounded-sm',
6363
'overflow-hidden',
64-
'object-contain',
65-
'object-left',
66-
'min-w-20',
64+
'shrink',
65+
'min-w-0',
6766
'max-w-40',
6867
'lg:max-w-64',
6968
'max-h-10',
7069
'lg:max-h-12',
70+
'h-full',
71+
'w-auto',
7172
)}
7273
/>
7374
) : (

0 commit comments

Comments
 (0)