Skip to content

Commit

Permalink
feat(client): make chapter problem editorial more visible (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar authored Feb 3, 2024
1 parent 8677103 commit 4bc943f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class ChapterProblemPage extends Component {
newProgress?.verdict == VerdictCode.AC &&
this.state.response.editorial
) {
const problemEditorialEl = document.querySelector('.problem-editorial');
const problemEditorialEl = document.querySelector('.chapter-problem-editorial');
if (problemEditorialEl) {
problemEditorialEl.scrollIntoView({ behavior: 'smooth' });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function ChapterProblemStatementPage({ worksheet }) {
<ContentCard id="chapter-problem-statement" className="chapter-programming-problem-statement-page">
{renderStatementHeader()}
{renderStatement()}
<div className="chapter-programming-problem-statement-page__footer">{renderEditorial()}</div>
<div className="chapter-problem-editorial">{renderEditorial()}</div>
</ContentCard>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
margin-top: 0;
}

.chapter-programming-problem-statement-page__footer {
.chapter-problem-editorial {
max-width: 800px;
margin-left: auto;
margin-right: auto;
Expand All @@ -42,9 +42,12 @@
}

.problem-editorial {
border: 2px solid #238551;
border-radius: 4px;
background-color: #72ca9b;
box-shadow: none;

.bp5-dark & {
background-color: #1c6e42;
}
}
}
.chapter-programming-problem-statement-page__navigation {
Expand Down

0 comments on commit 4bc943f

Please sign in to comment.