Skip to content

Commit

Permalink
Fix inline icon hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
thsparks committed Oct 15, 2024
1 parent 63bf49d commit b2326f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/marked.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ export class MarkedContent extends data.Component<MarkedContentProps, MarkedCont
// Renders inline blocks, such as "||controller: Controller||".
private renderInlineBlocks(content: HTMLElement) {
const { parent } = this.props;
const hasCategories = !parent.state.tutorialOptions?.metadata?.flyoutOnly;
const hasCategories = !parent.state.tutorialOptions?.metadata?.flyoutOnly && !parent.state.tutorialOptions?.metadata?.hideToolbox;
const inlineBlocks = pxt.Util.toArray(content.querySelectorAll(`:not(pre) > code`))
.map((inlineBlock: HTMLElement) => {
const text = inlineBlock.innerText;
Expand Down

0 comments on commit b2326f4

Please sign in to comment.