Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
fix: misplacement of buttons and inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
unbyte committed May 20, 2020
1 parent 34adcdd commit 9f4cca5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
10 changes: 3 additions & 7 deletions src/content/netease/components/evaluator/evaluator.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

textarea {
resize: none;
width: 232px;
width: 203px;
height: 80px;
padding: 8px 12px;
font-size: 16px;
Expand Down Expand Up @@ -67,10 +67,6 @@
align-items: center;
}

#mooc-assistant-evaluator-frequency {
width: 80px;
}

.number-input {
position: relative;

Expand All @@ -83,10 +79,10 @@
}

& input {
width: 55px;
width: 50px;
border: 2px solid @grey-a7;
padding: 0 10px;
height: 30px;
height: 26px;
background: @white-ef;

-moz-appearance: textfield;
Expand Down
7 changes: 4 additions & 3 deletions src/content/netease/components/evaluator/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class EvaluatorWorker {
private static random: boolean;
private static comment: string;
private static commentList: CommentItem[];
private static stopCallback: ()=>void;
private static stopCallback: () => void;

// 返回一个bool表示是否正常开始了任务
public static async run(
Expand All @@ -33,7 +33,7 @@ export class EvaluatorWorker {
random: boolean,
comment: string,
startCallback: (result: boolean) => void,
stopCallback:()=>void,
stopCallback: () => void,
): Promise<void> {
this.times = times;
this.frequency = frequency * 1000;
Expand Down Expand Up @@ -83,7 +83,7 @@ export class EvaluatorWorker {
".s"
);
const commentInputs: NodeListOf<HTMLTextAreaElement> = document.querySelectorAll(
".j-textarea"
"textarea.j-textarea"
);
const submitButton: HTMLInputElement | null = document.querySelector(
".j-submitbtn"
Expand Down Expand Up @@ -182,4 +182,5 @@ export class EvaluatorWorker {
}
return true;
}

}

0 comments on commit 9f4cca5

Please sign in to comment.