Skip to content

Commit 2834efe

Browse files
committed
Align Orbit header search with content
1 parent 7d6d6f4 commit 2834efe

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎scripts/orbit-browser-tests.mjs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ if (errors.length === 0) {
8181
{ width: 390, height: 844 },
8282
{ width: 768, height: 1024 },
8383
{ width: 1440, height: 900 },
84+
{ width: 1536, height: 900 },
8485
];
8586

8687
try {
@@ -169,6 +170,7 @@ if (errors.length === 0) {
169170
check(layout.navPosition !== 'fixed', `${label}: masaüstü navigasyonu yanlışlıkla fixed alt bara dönüştü.`);
170171
check(layout.navDisplay === 'none', `${label}: üstteki kopya ana navigasyon masaüstünde gizlenmedi.`);
171172
check(layout.headerSearch && layout.headerSearch.width >= 220, `${label}: masaüstü arama formu yeterli genişlikte değil.`);
173+
check(Math.abs(layout.headerSearch.x - layout.hero.x) <= 1, `${label}: header araması ana içerik kolonuyla hizalı değil (${layout.headerSearch.x}/${layout.hero.x}).`);
172174
check(!(await page.locator('.header-mobile-search').isVisible()), `${label}: mobil arama düğmesi masaüstünde görünür kaldı.`);
173175
}
174176

‎src/styles/layout.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
display: grid;
55
grid-template-columns: 220px minmax(260px, 520px) 1fr;
66
align-items: center;
7-
gap: 2.5rem;
7+
gap: clamp(2.5rem, calc((100% - 1300px) / 2), 5rem);
88
min-height: 76px;
99
width: min(1460px, calc(100% - 56px));
1010
}

0 commit comments

Comments
 (0)