mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 17:02:40 +00:00
Use classes rather than inline styling for indentation
This commit is contained in:
@@ -64,8 +64,8 @@ const HeaderNavItem = ({ link, text, depth, className })=>{
|
||||
};
|
||||
|
||||
return <li>
|
||||
<a href={`#${link}`} target='_self' className={className}>
|
||||
<span style={{ display: 'inline-block', width: `${depth * 0.5}em` }}></span>{trimString(text, depth)}
|
||||
<a href={`#${link}`} target='_self' className={`depth-${depth} ${className ?? ''}`}>
|
||||
{trimString(text, depth)}
|
||||
</a>
|
||||
</li>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user