Skip to content

Commit

Permalink
Add some notranslate hints
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicboy committed Feb 25, 2024
1 parent 0e223fa commit a1beb7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ const YamlNodeWithDescription = ({ name, node, parentKey, root, separator, showA
onClick={() => {
setShowDescription(!showDescription);
}}
className={`config-node with-value${showDescription ? '-active' : ''} clean-btn button--link`}
className={`config-node with-value${showDescription ? '-active' : ''} clean-btn button--link notranslate`}
translate={"no"}
>
{parseItalics(name)}{parseDefault(node.default.toString(), !showDescription, parentKey, name, handleHashLinkClick, separator)}
</button>
Expand Down Expand Up @@ -194,7 +195,7 @@ const YamlTreeNode = ({ root, name, parentKey, value, separator, showAllDescript

return (
<div key={name} className={`highlight-config-node`} style={{ paddingLeft: `${root ? 0 : INDENT_SIZE}px` }} id={hash}>
<div className={`config-auxiliary-node`} style={{display: "inline-flex"}}>
<div className={`config-auxiliary-node notranslate`} style={{display: "inline-flex"}} translate={"no"}>
{parseItalics(name)}{removeTrailingSpaces(separator)}
</div>
<Link className={`config-anchor with-value-active hash-link`} href={`#${hash}`} onClick={handleClick} title={hash} />
Expand Down

0 comments on commit a1beb7c

Please sign in to comment.