fix(homepage): 修复个人主页样式和功能问题
修复个人主页的响应式布局问题,优化移动端显示效果 调整分类和排序区域的样式,移除不必要的margin-left 更新投票组件的内容显示类名为one-line-display-v2 修复主页加载逻辑,优化数据获取和分页处理 移除未使用的代码和注释,清理CSS样式
This commit is contained in:
@@ -32,8 +32,6 @@
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.pen-box {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
@@ -234,7 +232,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
.matter-content {
|
||||
.matter-content {
|
||||
min-width: 0;
|
||||
.message-box {
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
border: 1px solid rgba(233, 238, 242, 1);
|
||||
@@ -370,6 +369,7 @@
|
||||
.operation-item {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-right: 40px;
|
||||
}
|
||||
@@ -378,7 +378,6 @@
|
||||
font-family: PingFangSC-Semibold, "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
font-style: normal;
|
||||
font-size: 18px;
|
||||
color: #000000;
|
||||
|
||||
&::after {
|
||||
@@ -401,14 +400,14 @@
|
||||
padding-left: 95px;
|
||||
padding-right: 40px;
|
||||
|
||||
overflow-x: auto;
|
||||
justify-content: flex-start;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
// overflow-x: auto;
|
||||
// justify-content: flex-start;
|
||||
// -webkit-overflow-scrolling: touch;
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
scrollbar-width: none;
|
||||
// &::-webkit-scrollbar {
|
||||
// display: none;
|
||||
// }
|
||||
// scrollbar-width: none;
|
||||
|
||||
.item {
|
||||
width: 50px;
|
||||
@@ -457,7 +456,7 @@
|
||||
}
|
||||
|
||||
.empty {
|
||||
width: 725px;
|
||||
// width: 725px;
|
||||
height: 360px;
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
border: 1px solid rgba(233, 238, 242, 1);
|
||||
@@ -479,6 +478,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.list-load-box {
|
||||
margin-left: 95px;
|
||||
margin-right: 40px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.load-more {
|
||||
padding: 20px 0 40px;
|
||||
color: #7f7f7f;
|
||||
@@ -489,19 +494,53 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1050px) {
|
||||
#homepage-me .matter .matter-content .list-area {
|
||||
.operation-box {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.classify {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.issue-data {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.list-load-box {
|
||||
margin-left: 40px;
|
||||
}
|
||||
|
||||
.list-box {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.empty {
|
||||
margin-left: 40px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 950px) {
|
||||
.item-box .bottom .bottom-item:not(:last-child) {
|
||||
margin-right: 45px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 响应式布局优化 */
|
||||
@media screen and (max-width: 880px) {
|
||||
.head-top {
|
||||
margin: 10px auto 15px !important;
|
||||
}
|
||||
|
||||
|
||||
.head-navigation {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#homepage-me {
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
// padding: 0;
|
||||
|
||||
.matter {
|
||||
flex-direction: column;
|
||||
@@ -513,7 +552,7 @@
|
||||
padding: 30px 20px;
|
||||
position: static;
|
||||
align-items: center;
|
||||
border-radius: 0;
|
||||
// border-radius: 0;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
|
||||
@@ -545,24 +584,25 @@
|
||||
|
||||
.matter-content {
|
||||
width: 100%;
|
||||
|
||||
|
||||
.message-box {
|
||||
width: auto;
|
||||
margin: 0 0 15px 0;
|
||||
padding: 20px;
|
||||
border-radius: 0;
|
||||
// border-radius: 0;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
|
||||
.stats {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.header {
|
||||
padding-top: 0;
|
||||
text-align: center;
|
||||
.avatar { display: none; }
|
||||
.username { font-size: 16px; font-weight: 600; }
|
||||
display: none;
|
||||
}
|
||||
|
||||
.info-list {
|
||||
padding-top: 15px;
|
||||
padding-top: 0;
|
||||
.item {
|
||||
width: 50%;
|
||||
padding-right: 10px;
|
||||
@@ -576,34 +616,26 @@
|
||||
}
|
||||
|
||||
.list-area {
|
||||
border-radius: 0;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
|
||||
.operation-box {
|
||||
padding: 15px 20px;
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
display: flex;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
&::-webkit-scrollbar { display: none; }
|
||||
scrollbar-width: none;
|
||||
font-size: 16px;
|
||||
|
||||
.operation-item {
|
||||
flex-shrink: 0;
|
||||
&:not(:last-child) { margin-right: 30px; }
|
||||
&:not(:last-child) {
|
||||
margin-right: 30px;
|
||||
}
|
||||
|
||||
&.pitch::after {
|
||||
bottom: -18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.classify {
|
||||
padding: 10px 20px 20px;
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
&::-webkit-scrollbar { display: none; }
|
||||
scrollbar-width: none;
|
||||
padding: 20px;
|
||||
|
||||
.item {
|
||||
flex-shrink: 0;
|
||||
@@ -613,7 +645,11 @@
|
||||
}
|
||||
|
||||
.issue-data {
|
||||
padding: 0 20px 15px;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.list-load-box {
|
||||
margin: 0 20px;
|
||||
}
|
||||
|
||||
.list-box {
|
||||
@@ -626,13 +662,13 @@
|
||||
min-height: 200px;
|
||||
margin: 20px;
|
||||
padding: 40px 0;
|
||||
|
||||
|
||||
.empty-icon {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.load-more {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
@@ -642,28 +678,115 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.head-top {
|
||||
.sign-in {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.input-box {
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 5px;
|
||||
|
||||
.placeholder {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.icon {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#homepage-me .matter .matter-content .list-area .classify .item {
|
||||
padding: 0 9px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 480px) {
|
||||
#homepage-me .matter {
|
||||
.card-user {
|
||||
.bi-box {
|
||||
width: 100%;
|
||||
max-width: 320px;
|
||||
.bi-masking { width: 100%; background-size: 100% 100%; }
|
||||
.bi-masking {
|
||||
width: 100%;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.matter-content {
|
||||
.list-area {
|
||||
.operation-box {
|
||||
padding: 15px 8px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.classify {
|
||||
padding: 20px 8px;
|
||||
.item {
|
||||
padding: 0 7px;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.list-box {
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.list-load-box {
|
||||
margin: 0 8px;
|
||||
}
|
||||
|
||||
.empty {
|
||||
margin-left: 8px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.message-box {
|
||||
.info-list {
|
||||
.item {
|
||||
width: 100%;
|
||||
margin-bottom: 12px;
|
||||
justify-content: space-between;
|
||||
|
||||
.label { width: auto; }
|
||||
|
||||
.label {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item-box .bottom .bottom-item:not(:last-child) {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 430px) {
|
||||
#homepage-me .matter {
|
||||
.matter-content {
|
||||
.list-area .classify {
|
||||
.item:not(:last-child) {
|
||||
margin-right: 7px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 410px) {
|
||||
#homepage-me .matter .matter-content .list-area .classify .item {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user