Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
More limits to Lead nav
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Nov 23, 2021
1 parent 24104f2 commit 0b5a328
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/theme/Header/HeaderNavigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,13 @@ const HeaderNavigation = ({ items, pageWidth }) => {
{displayedItems.length > 0 &&
displayedItems.map((item, index) => (
<Link
style={{ width: `${100 / itemsPerPage}%` }}
style={{
width: `${
items.length < itemsPerPage
? 100 / items.length
: 100 / itemsPerPage
}%`,
}}
className={`lead-navigation-item ${
activeItem.title === item.title ? 'active-lead-nav' : ''
}`}
Expand Down

0 comments on commit 0b5a328

Please sign in to comment.