feat: 修改宽度

This commit is contained in:
秋水浮尘
2024-03-03 22:50:45 +08:00
parent cca31e8de2
commit 39a9deb7fb
13 changed files with 77 additions and 77 deletions

View File

@@ -6,7 +6,7 @@
border-radius: 4px; border-radius: 4px;
margin: 0 auto; margin: 0 auto;
position: absolute; position: absolute;
min-width: 1439px; min-width: 1200px;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
@@ -22,7 +22,7 @@
user-select: none; /* Non-prefixed version, currently not supported by any browser */ user-select: none; /* Non-prefixed version, currently not supported by any browser */
scrollbar-width: none; scrollbar-width: none;
.content-box { .content-box {
width: 1439px; width: 1200px;
margin: 0 auto; margin: 0 auto;
overflow: auto; overflow: auto;
flex-grow: 1; flex-grow: 1;

View File

@@ -60,7 +60,7 @@ const App = () => {
<Header /> <Header />
<div <div
className='content-box' className='content-box'
style={{ width: location.pathname === '/login' ? '100%' : '1439px' }} style={{ width: location.pathname === '/login' ? '100%' : '1200px' }}
> >
<Suspense fallback={<div></div>}> <Suspense fallback={<div></div>}>
<Outlet /> <Outlet />

View File

@@ -1,5 +1,5 @@
.brush-questions-box { .brush-questions-box {
width: 1439px; width: 1200px;
margin: 0 auto; margin: 0 auto;
background-color: #fff; background-color: #fff;
padding: 20px 50px; padding: 20px 50px;

View File

@@ -4,7 +4,7 @@
left: 0; left: 0;
right: 0; right: 0;
height: 50px; height: 50px;
min-width: 1439px; min-width: 1200px;
background-color: #fff; background-color: #fff;
border-radius: 4px; border-radius: 4px;
} }

View File

@@ -1,6 +1,6 @@
.personal-center-box { .personal-center-box {
margin: 0 auto; margin: 0 auto;
width: 1439px; width: 1200px;
border-radius: 5px; border-radius: 5px;
overflow: auto; overflow: auto;
.personal-center-introduction { .personal-center-introduction {

View File

@@ -1,5 +1,5 @@
.details-container { .details-container {
width: 1439px; width: 1200px;
margin: 0 auto; margin: 0 auto;
overflow: auto; overflow: auto;
background-color: #ffffff; background-color: #ffffff;

View File

@@ -1,24 +1,24 @@
.front-box { .front-box {
.ant-descriptions-title { .ant-descriptions-title {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 18px; font-size: 18px;
color: rgba(51, 51, 51, 0.7); 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 { .box2 {
font-size: 14px; flex: 1;
color: rgba(51, 51, 51, 0.5); // float: right;
} text-align: right;
.box{
display: flex;
width: 1439px;
.box1{
flex: 1;
}
.box2{
flex: 1;
// float: right;
text-align: right;
}
} }
}
} }

View File

@@ -1,7 +1,7 @@
.practice-questions-container { .practice-questions-container {
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
width: 1439px; width: 1200px;
// padding: 20px 50px; // padding: 20px 50px;
border-radius: 5px; border-radius: 5px;
// flex-direction: column; // flex-direction: column;

View File

@@ -36,14 +36,14 @@ export const RankingType = {
* 模块名称 * 模块名称
*/ */
export const RankingTypeText = { export const RankingTypeText = {
[RankingType.contribution]: '出题贡献榜', [RankingType.contribution]: '综合练习榜',
[RankingType.practice]: '综合练习榜' [RankingType.practice]: '出题贡献榜'
} }
/** /**
* 对应按钮名字 * 对应按钮名字
*/ */
export const RankingTypeBtnText = { export const RankingTypeBtnText = {
[RankingType.contribution]: '去出题', [RankingType.contribution]: '去练习',
[RankingType.practice]: '去练习' [RankingType.practice]: '去出题'
} }

View File

@@ -1,6 +1,6 @@
.question-bank-box { .question-bank-box {
display: flex; display: flex;
width: 1439px; width: 1200px;
margin: 0 auto; margin: 0 auto;
background-color: #f3f4f6; background-color: #f3f4f6;
border-radius: 5px; border-radius: 5px;

View File

@@ -132,8 +132,8 @@ const QuestionBank = () => {
</div> </div>
</div> </div>
<div className='ranking-box'> <div className='ranking-box'>
<ContributionList />
<RankingList /> <RankingList />
<ContributionList />
</div> </div>
</div> </div>
) )

View File

@@ -1,46 +1,46 @@
.search-details-box { .search-details-box {
width: 1439px; width: 1200px;
margin: 0 auto; margin: 0 auto;
background-color: #fff; background-color: #fff;
padding: 20px 50px; padding: 20px 50px;
border-radius: 5px; border-radius: 5px;
overflow: auto; overflow: auto;
.ant-card-body { .ant-card-body {
padding: 0 24px; 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 { .search-null {
background-color: #f5f5f5; display: block;
padding: 20px 40px; text-align: center;
border-radius: 3px 3px 0 0; margin: 50px 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;
}
} }
}
} }

View File

@@ -1,7 +1,7 @@
.upload-questions-box { .upload-questions-box {
position: relative; position: relative;
margin: 0 auto; margin: 0 auto;
width: 1439px; width: 1200px;
// overflow-y: auto; // overflow-y: auto;
border-radius: 5px; border-radius: 5px;
// height: calc(100vh - 100px); // height: calc(100vh - 100px);