Skip to content

Commit

Permalink
Removed padding, code shown by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Bianca Wentzel committed Feb 14, 2025
1 parent 0aa13b1 commit 821a725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/Containers/FrevaGPT/components/CodeBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CodeBlock extends React.Component {
this.extractElements = this.extractElements.bind(this);

this.state = {
showCode: false,
showCode: true,
}
}

Expand All @@ -31,7 +31,7 @@ class CodeBlock extends React.Component {
render() {
return (
<Card className="shadow-sm card-body border-0 border-bottom mb-3 bg-light">
<Button variant="link" className="m-0 d-inline-flex" onClick={() => {this.toggleShowCode(this.state.showCode)}}>
<Button variant="link" className="m-0 p-0 d-inline-flex" onClick={() => {this.toggleShowCode(this.state.showCode)}}>
Analyzed
<span>
{this.state.showCode ? <FaAngleUp/> : <FaAngleDown/>}
Expand Down

0 comments on commit 821a725

Please sign in to comment.