Rewire operation/tag DOM ids; implement hash scroll-to

This commit is contained in:
Kyle Shockey
2017-07-14 00:41:22 -07:00
parent 79f91b2e3e
commit 41ecceed87
3 changed files with 48 additions and 1 deletions

View File

@@ -62,7 +62,10 @@ export default class Operations extends React.Component {
return (
<div className={showTag ? "opblock-tag-section is-open" : "opblock-tag-section"} key={"operation-" + tag}>
<h4 onClick={() => layoutActions.show(isShownKey, !showTag)} className={!tagDescription ? "opblock-tag no-desc" : "opblock-tag" }>
<h4
onClick={() => layoutActions.show(isShownKey, !showTag)}
className={!tagDescription ? "opblock-tag no-desc" : "opblock-tag" }
id={isShownKey.join("-")}>
<span>{tag}</span>
{ !tagDescription ? null :
<small>