Not using flexbox when measuring navbar item widths so that Admin link is not cropped.
Some checks failed
CodeQL / Analyze (push) Has been cancelled
Controller Tests / controller-tests (push) Has been cancelled
Jest Tests / jest-tests (push) Has been cancelled

This commit is contained in:
Roland 2026-04-10 15:27:15 -06:00
parent 651dbd84e9
commit 74a4198f8d
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -301,12 +301,12 @@ function DesktopNav({i, navColor, homeLink, icons}) {
<span
key={link.key}
ref={itemRefCallback(idx)}
style={isReady ? {display: 'contents'} : {visibility: 'hidden'}}
style={isReady ? {display: 'contents'} : {visibility: 'hidden', flexShrink: 0}}
>
<MenuLink link={link}/>
</span>
))}
{!isReady && <span ref={moreRef} style={{visibility: 'hidden'}}>
{!isReady && <span ref={moreRef} style={{visibility: 'hidden', flexShrink: 0}}>
<Dropdown item text='More'><Dropdown.Menu/></Dropdown>
</span>}
{isReady && overflowLinks.length > 0 &&