Skip to content

Commit

Permalink
addedd download icon
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeAnger committed Jan 6, 2025
1 parent 89cec8a commit 93cf27d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ main {
max-height: calc(100dvh - 10rem);
}

.notebook-header {
display: flex;
margin-bottom: 1rem;
max-height: 3rem;
}

.notebook-cell :not(.lowlight) {
max-width: 800px;
}
Expand Down
8 changes: 5 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,15 @@ function App() {
</header>
<main className="main-content" >
<div className="notebook-view" style={hideStyle}>
<button
<div className="notebook-header">
<h2>Student Notebook</h2>
<button
onClick={() => downloadNotebook(notebookContent, `${hintRequest.request_id}_SIADS505_TA_feedback.ipynb`)}
disabled={feedbackSubmitted}
style={{position: "absolute", top: "0", right: "1rem", display: "flex", alignItems: "center",backgroundColor: "blue", color: "white", padding: "0.25rem .5rem", borderRadius: "5px", border: "none", cursor: "pointer"}}
>
<span style={{fontSize: "1.2rem"}} ></span> Download
</button>
</button>
</div>
{renderNotebook()}
</div>
<div className="hint-area">
Expand Down
1 change: 1 addition & 0 deletions src/utils/icons.js

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

0 comments on commit 93cf27d

Please sign in to comment.