mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Not using flexbox when measuring navbar item widths so that Admin link is not cropped.
This commit is contained in:
parent
651dbd84e9
commit
74a4198f8d
1 changed files with 2 additions and 2 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue