Skip to content

Commit

Permalink
fix small bugs on UI
Browse files Browse the repository at this point in the history
  • Loading branch information
gongpha committed Nov 4, 2022
1 parent ff0bd3b commit 3c23699
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ejudge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ export class EJudge {

// Spec
let table = $(rows[1]).find(".box-body > table");
_ = table.find("tbody > tr");
_ = table.find("tbody > tr > td");

__ = _.get(0);
if (__ !== undefined) { problem.specIn = ($(__).html() ?? "").trim(); };
Expand Down
4 changes: 2 additions & 2 deletions src/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function getProblemContent(webview: Webview, extensionUri: Uri, problem:
</vscode-data-grid-row>
<vscode-data-grid-row>
<vscode-data-grid-cell grid-column="1">${problem.specIn}</vscode-data-grid-cell>
<vscode-data-grid-cell grid-column="2">${problem.specIn}</vscode-data-grid-cell>
<vscode-data-grid-cell grid-column="2">${problem.specOut}</vscode-data-grid-cell>
</vscode-data-grid-row>
</vscode-data-grid>
<vscode-divider></vscode-divider>
Expand All @@ -153,7 +153,7 @@ export function getProblemContent(webview: Webview, extensionUri: Uri, problem:
<vscode-panel-view id="view-3">
<vscode-button id="submission-force-refresh" hidden appearance="secondary">Force Refresh</vscode-button>
<div id="submissions-view">
<vscode-progress-ring></vscode-progress-ring>
Submit your code to see your submissions here.
</div>
</vscode-panel-view>
</vscode-panels>
Expand Down
1 change: 1 addition & 0 deletions src/webview/problem.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function renderResult(results, fromServer = false) {
} else if (element.status === 3) {
statusText = "Timeout";
classStyle = "submission-timeout";
col3 = '';
} else {
statusText = "Memory Error";
classStyle = "submission-error";
Expand Down

0 comments on commit 3c23699

Please sign in to comment.