Skip to content

Commit

Permalink
styles
Browse files Browse the repository at this point in the history
  • Loading branch information
getrebuild committed Nov 15, 2023
1 parent 70149bb commit 2cbed22
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion @rbv
Submodule @rbv updated from 3956ef to e5d044
3 changes: 0 additions & 3 deletions src/main/resources/web/assets/css/rb-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ button[disabled] {

code {
color: #e83e8c;
}

.code-view {
font-family: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', 'Liberation Mono', Menlo, Monaco, Consolas, monospace;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ class FormulaCode extends React.Component {
static textCode(code) {
code = code.substr(4, code.length - 8) // Remove {{{{ xxx }}}}
code = code.replace(/\n/gi, '<br/>').replace(/( )/gi, '&nbsp;')
return <code style={{ lineHeight: 1.2 }} className="code-view" dangerouslySetInnerHTML={{ __html: code }} />
return <code style={{ lineHeight: 1.2 }} dangerouslySetInnerHTML={{ __html: code }} />
}
}

Expand Down

0 comments on commit 2cbed22

Please sign in to comment.