Skip to content

Commit

Permalink
fix: 题库列表描述信息简化
Browse files Browse the repository at this point in the history
  • Loading branch information
xjq7 committed Nov 15, 2022
1 parent 4f5a9f0 commit ca9a357
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 1,017 deletions.
2 changes: 1 addition & 1 deletion client/src/pages/question/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
height: 240px;
background-color: white;
bottom: 60px;
padding: 10px;
padding: 15px;
overflow-y: scroll;
overflow-x: scroll;
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/question/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function Question() {
setShowOutput(!showOutput);
}}
>
show
{showOutput ? 'hide' : 'show'}
</Button>
</div>
<div className={styles.right}>
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/questions/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
font-weight: 700;
font-size: 18px;
}
.introduce {
.desc {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
Expand Down
4 changes: 1 addition & 3 deletions client/src/pages/questions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ function Questions() {
}}
>
<p className={classNames('text-black', styles.title)}>{item.name}</p>
<p className={classNames('text-gray-400', styles.introduce)}>
{item.introduce}
</p>
<p className={classNames('text-gray-400', styles.desc)}>{item.desc}</p>
</div>
);
};
Expand Down
1 change: 1 addition & 0 deletions client/src/services/question.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface IQuestion {
type?: string;
index?: string;
introduce?: string;
desc: string;
}

export function getQuestions(params: GetQuestionsRequest) {
Expand Down
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"main": "index.js",
"scripts": {
"release": "standard-version",
"generate-qs": "node qs.mjs",
"test": "ava"
"generate-qs": "node qs.mjs"
},
"repository": {
"type": "git",
Expand All @@ -17,8 +16,5 @@
"bugs": {
"url": "https://github.com/xjq7/runcode/issues"
},
"homepage": "https://github.com/xjq7/runcode#readme",
"dependencies": {
"ava": "^5.0.1"
}
"homepage": "https://github.com/xjq7/runcode#readme"
}
Loading

0 comments on commit ca9a357

Please sign in to comment.