Skip to content

Commit

Permalink
Upgrade to asttokens 3.0, no longer need six (#498)
Browse files Browse the repository at this point in the history
Also make assistant headers more obviously clickable
  • Loading branch information
alexmojaki authored Dec 7, 2024
1 parent 893cafb commit 3b606b2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
1 change: 0 additions & 1 deletion core/core_imports.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ pyflakes
pygments
python_runner
sentry_sdk
six.py
snoop
stack_data
6 changes: 3 additions & 3 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ const Assistant = (assistant) => {
<Collapsible classParentString="assistant-requirements card"
contentInnerClassName="assistant-content card-body"
trigger={<div className="card-header">
<FontAwesomeIcon icon={faQuestionCircle}/> {terms.requirements}
{terms.requirements}
</div>}
>
<p>
Expand All @@ -269,7 +269,7 @@ const Assistant = (assistant) => {
classParentString="assistant-assessment card"
contentInnerClassName="assistant-content card-body"
trigger={<div className="card-header">
<FontAwesomeIcon icon={faListCheck}/> {terms.assessment} &nbsp;
{terms.assessment} &nbsp;
{newMessages && <span className="badge badge-pill badge-danger">{terms.new}</span>}
</div>}
>
Expand All @@ -278,7 +278,7 @@ const Assistant = (assistant) => {
<Collapsible classParentString="assistant-hints card"
contentInnerClassName="assistant-content card-body"
trigger={<div className="card-header">
<FontAwesomeIcon icon={faLightbulb}/> {terms.hints_and_solution}
{terms.hints_and_solution}
</div>}
>
<HintsAssistant {...assistant}/>
Expand Down
16 changes: 14 additions & 2 deletions frontend/src/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,22 @@
.assistant {
margin-top: 1em;

.card-header {
padding: .75rem 3.25rem;
background: rgba(0,0,0,0);
}

.card__trigger {
font-size: larger;
position: relative;

cursor: pointer;
background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));

:hover {
background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.15));
}

// Font awesome icons
svg {
width: 2em;
Expand All @@ -482,8 +494,8 @@
font-family: 'Tahoma', sans-serif;
content: '^';
position: absolute;
right: 20px;
top: 10px;
left: 20px;
top: 12px;
display: block;
transition: transform 300ms;
}
Expand Down
15 changes: 6 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b606b2

Please sign in to comment.