@@ -342,39 +342,41 @@ const Navigation = () => {
342
342
return (
343
343
< div className = "sticky top-0 z-10" data-testid = "navigation-container" >
344
344
< nav
345
- className = { `bg-zinc-925 text-slate-300 flex justify-between py-2 px-4 h-16
346
- transition-opacity duration-500 ease-in-out ${ navOpacity } ` }
345
+ className = { `bg-zinc-925 text-slate-300 py-2 px-4 h-16
346
+ transition-opacity duration-500 ease-in-out ${ navOpacity } ` }
347
347
data-testid = "navigation"
348
348
>
349
- < HomeIcon />
350
- { contextScreenWidth === 'TABLET' ||
351
- contextScreenWidth === 'DESKTOP' ? (
352
- < DesktopSearch
353
- handleBlur = { handleBlur }
354
- handleChange = { handleChange }
355
- handleClick = { handleClickCompletion }
356
- handleFocus = { handleFocus }
357
- handleInput = { handleInput }
358
- handleKeyDown = { handleKeyDown }
359
- handleSearch = { handleSearch }
360
- handleSearchDoubleClick = { handleSearchDoubleClick }
361
- handleSearchKeyDown = { handleSearchKeyDown }
362
- inputRef = { inputRef }
363
- searchResultsExpanded = { searchResultsExpanded }
364
- ref = { desktopSearchRef }
365
- />
366
- ) : (
367
- < ButtonIcon
368
- ariaLabel = "Search current Livestreams."
369
- ariaPressed = { ariaPressed }
370
- buttonIconRef = { buttonIconRef }
371
- type = "Search"
372
- title = "Toggle search bar."
373
- onClick = { handleToggleMobile }
374
- place = "center"
375
- />
376
- ) }
377
- < UserIcon anchorRef = { anchorRef } buttonRef = { userIconRef } />
349
+ < div className = "max-w-[2048px] flex justify-between w-full m-auto" >
350
+ < HomeIcon />
351
+ { contextScreenWidth === 'TABLET' ||
352
+ contextScreenWidth === 'DESKTOP' ? (
353
+ < DesktopSearch
354
+ handleBlur = { handleBlur }
355
+ handleChange = { handleChange }
356
+ handleClick = { handleClickCompletion }
357
+ handleFocus = { handleFocus }
358
+ handleInput = { handleInput }
359
+ handleKeyDown = { handleKeyDown }
360
+ handleSearch = { handleSearch }
361
+ handleSearchDoubleClick = { handleSearchDoubleClick }
362
+ handleSearchKeyDown = { handleSearchKeyDown }
363
+ inputRef = { inputRef }
364
+ searchResultsExpanded = { searchResultsExpanded }
365
+ ref = { desktopSearchRef }
366
+ />
367
+ ) : (
368
+ < ButtonIcon
369
+ ariaLabel = "Search current Livestreams."
370
+ ariaPressed = { ariaPressed }
371
+ buttonIconRef = { buttonIconRef }
372
+ type = "Search"
373
+ title = "Toggle search bar."
374
+ onClick = { handleToggleMobile }
375
+ place = "center"
376
+ />
377
+ ) }
378
+ < UserIcon anchorRef = { anchorRef } buttonRef = { userIconRef } />
379
+ </ div >
378
380
</ nav >
379
381
{ ( contextScreenWidth === 'MOBILE' ||
380
382
contextScreenWidth === 'TABLET_SMALL' ) &&
0 commit comments