diff --git a/src/App.less b/src/App.less index 7bcd923..335a7b6 100644 --- a/src/App.less +++ b/src/App.less @@ -6,7 +6,7 @@ border-radius: 4px; margin: 0 auto; position: absolute; - min-width: 1439px; + min-width: 1200px; top: 0; left: 0; right: 0; @@ -22,7 +22,7 @@ user-select: none; /* Non-prefixed version, currently not supported by any browser */ scrollbar-width: none; .content-box { - width: 1439px; + width: 1200px; margin: 0 auto; overflow: auto; flex-grow: 1; diff --git a/src/App.tsx b/src/App.tsx index cd2a59a..676653d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -60,7 +60,7 @@ const App = () => {
}> diff --git a/src/views/brush-questions/index.less b/src/views/brush-questions/index.less index 311585f..9ba0c87 100644 --- a/src/views/brush-questions/index.less +++ b/src/views/brush-questions/index.less @@ -1,5 +1,5 @@ .brush-questions-box { - width: 1439px; + width: 1200px; margin: 0 auto; background-color: #fff; padding: 20px 50px; diff --git a/src/views/header/index.less b/src/views/header/index.less index a95136a..e4231a2 100644 --- a/src/views/header/index.less +++ b/src/views/header/index.less @@ -4,7 +4,7 @@ left: 0; right: 0; height: 50px; - min-width: 1439px; + min-width: 1200px; background-color: #fff; border-radius: 4px; } diff --git a/src/views/personal-center/index.less b/src/views/personal-center/index.less index f039835..3715408 100644 --- a/src/views/personal-center/index.less +++ b/src/views/personal-center/index.less @@ -1,6 +1,6 @@ .personal-center-box { margin: 0 auto; - width: 1439px; + width: 1200px; border-radius: 5px; overflow: auto; .personal-center-introduction { diff --git a/src/views/practise/practice-details/index.less b/src/views/practise/practice-details/index.less index bc306b5..9e677a9 100644 --- a/src/views/practise/practice-details/index.less +++ b/src/views/practise/practice-details/index.less @@ -1,5 +1,5 @@ .details-container { - width: 1439px; + width: 1200px; margin: 0 auto; overflow: auto; background-color: #ffffff; diff --git a/src/views/practise/practice-questions/components/front-end/index.less b/src/views/practise/practice-questions/components/front-end/index.less index c300d3a..43153ee 100644 --- a/src/views/practise/practice-questions/components/front-end/index.less +++ b/src/views/practise/practice-questions/components/front-end/index.less @@ -1,24 +1,24 @@ .front-box { - .ant-descriptions-title { - display: flex; - justify-content: space-between; - font-size: 18px; - color: rgba(51, 51, 51, 0.7); + .ant-descriptions-title { + display: flex; + justify-content: space-between; + font-size: 18px; + color: rgba(51, 51, 51, 0.7); + } + .ant-checkbox-wrapper { + font-size: 14px; + color: rgba(51, 51, 51, 0.5); + } + .box { + display: flex; + width: 1200px; + .box1 { + flex: 1; } - .ant-checkbox-wrapper { - font-size: 14px; - color: rgba(51, 51, 51, 0.5); - } - .box{ - display: flex; - width: 1439px; - .box1{ - flex: 1; - } - .box2{ - flex: 1; - // float: right; - text-align: right; - } + .box2 { + flex: 1; + // float: right; + text-align: right; } + } } diff --git a/src/views/practise/practice-questions/index.less b/src/views/practise/practice-questions/index.less index 67fdf05..8b95fad 100644 --- a/src/views/practise/practice-questions/index.less +++ b/src/views/practise/practice-questions/index.less @@ -1,7 +1,7 @@ .practice-questions-container { margin: 0 auto; display: flex; - width: 1439px; + width: 1200px; // padding: 20px 50px; border-radius: 5px; // flex-direction: column; diff --git a/src/views/question-bank/constant.ts b/src/views/question-bank/constant.ts index e7765b1..34c76ce 100644 --- a/src/views/question-bank/constant.ts +++ b/src/views/question-bank/constant.ts @@ -36,14 +36,14 @@ export const RankingType = { * 模块名称 */ export const RankingTypeText = { - [RankingType.contribution]: '出题贡献榜', - [RankingType.practice]: '综合练习榜' + [RankingType.contribution]: '综合练习榜', + [RankingType.practice]: '出题贡献榜' } /** * 对应按钮名字 */ export const RankingTypeBtnText = { - [RankingType.contribution]: '去出题', - [RankingType.practice]: '去练习' + [RankingType.contribution]: '去练习', + [RankingType.practice]: '去出题' } diff --git a/src/views/question-bank/index.less b/src/views/question-bank/index.less index e82c840..4586fce 100644 --- a/src/views/question-bank/index.less +++ b/src/views/question-bank/index.less @@ -1,6 +1,6 @@ .question-bank-box { display: flex; - width: 1439px; + width: 1200px; margin: 0 auto; background-color: #f3f4f6; border-radius: 5px; diff --git a/src/views/question-bank/index.tsx b/src/views/question-bank/index.tsx index 5fee23c..b00e9a5 100644 --- a/src/views/question-bank/index.tsx +++ b/src/views/question-bank/index.tsx @@ -132,8 +132,8 @@ const QuestionBank = () => {
- +
) diff --git a/src/views/search-details/index.less b/src/views/search-details/index.less index ca6da7e..bb94403 100644 --- a/src/views/search-details/index.less +++ b/src/views/search-details/index.less @@ -1,46 +1,46 @@ .search-details-box { - width: 1439px; - margin: 0 auto; - background-color: #fff; - padding: 20px 50px; - border-radius: 5px; - overflow: auto; - .ant-card-body { - padding: 0 24px; + width: 1200px; + margin: 0 auto; + background-color: #fff; + padding: 20px 50px; + border-radius: 5px; + overflow: auto; + .ant-card-body { + padding: 0 24px; + } + .search-details-box-search { + background-color: #f5f5f5; + padding: 20px 40px; + border-radius: 3px 3px 0 0; + font-size: 14px; + } + .search-details-box-content { + .search-details-box-content-main-item { + margin-top: 10px; + padding: 10px 0; + font-weight: 400; + border-bottom: 1px solid #e5e5e5; + .search-details-box-content-main-item-question { + color: #3c6eee; + cursor: pointer; + font-size: 18px; + margin-bottom: 5px; + } + .search-details-box-content-main-item-answer { + font-size: 13px; + cursor: pointer; + letter-spacing: 0; + overflow: hidden; + display: -webkit-box; + text-overflow: ellipsis; + -webkit-line-clamp: 2; /*要显示的行数*/ + -webkit-box-orient: vertical; + } } - .search-details-box-search { - background-color: #f5f5f5; - padding: 20px 40px; - border-radius: 3px 3px 0 0; - font-size: 14px; - } - .search-details-box-content { - .search-details-box-content-main-item { - margin-top: 10px; - padding: 10px 0; - font-weight: 400; - border-bottom: 1px solid #e5e5e5; - .search-details-box-content-main-item-question { - color: #3c6eee; - cursor: pointer; - font-size: 18px; - margin-bottom: 5px; - } - .search-details-box-content-main-item-answer { - font-size: 13px; - cursor: pointer; - letter-spacing: 0; - overflow: hidden; - display: -webkit-box; - text-overflow: ellipsis; - -webkit-line-clamp: 2; /*要显示的行数*/ - -webkit-box-orient: vertical; - } - } - .search-null { - display: block; - text-align: center; - margin: 50px 0; - } + .search-null { + display: block; + text-align: center; + margin: 50px 0; } + } } diff --git a/src/views/upload-questions/index.less b/src/views/upload-questions/index.less index 98f2236..490df3a 100644 --- a/src/views/upload-questions/index.less +++ b/src/views/upload-questions/index.less @@ -1,7 +1,7 @@ .upload-questions-box { position: relative; margin: 0 auto; - width: 1439px; + width: 1200px; // overflow-y: auto; border-radius: 5px; // height: calc(100vh - 100px);