fix(homepage): 修复个人主页样式和功能问题
修复个人主页的响应式布局问题,优化移动端显示效果 调整分类和排序区域的样式,移除不必要的margin-left 更新投票组件的内容显示类名为one-line-display-v2 修复主页加载逻辑,优化数据获取和分页处理 移除未使用的代码和注释,清理CSS样式
This commit is contained in:
@@ -201,6 +201,9 @@
|
||||
margin-right: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
#homepage-me .matter .matter-content {
|
||||
min-width: 0;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box {
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #e9eef2;
|
||||
@@ -327,7 +330,6 @@
|
||||
font-family: PingFangSC-Semibold, "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
font-style: normal;
|
||||
font-size: 18px;
|
||||
color: #000000;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .operation-box .operation-item.pitch::after {
|
||||
@@ -345,13 +347,6 @@
|
||||
padding-bottom: 23px;
|
||||
padding-left: 95px;
|
||||
padding-right: 40px;
|
||||
overflow-x: auto;
|
||||
justify-content: flex-start;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .classify::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .classify .item {
|
||||
width: 50px;
|
||||
@@ -393,7 +388,6 @@
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .empty {
|
||||
width: 725px;
|
||||
height: 360px;
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #e9eef2;
|
||||
@@ -412,11 +406,41 @@
|
||||
color: #7f7f7f;
|
||||
margin-top: 10px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .list-load-box {
|
||||
margin-left: 95px;
|
||||
margin-right: 40px;
|
||||
width: auto;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .load-more {
|
||||
padding: 20px 0 40px;
|
||||
color: #7f7f7f;
|
||||
font-size: 14px;
|
||||
}
|
||||
@media screen and (max-width: 1050px) {
|
||||
#homepage-me .matter .matter-content .list-area .operation-box {
|
||||
padding-left: 40px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .classify {
|
||||
padding-left: 40px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .issue-data {
|
||||
padding-left: 40px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .list-load-box {
|
||||
margin-left: 40px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .list-box {
|
||||
padding-left: 40px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .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 {
|
||||
@@ -427,7 +451,6 @@
|
||||
}
|
||||
#homepage-me {
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
#homepage-me .matter {
|
||||
flex-direction: column;
|
||||
@@ -439,7 +462,6 @@
|
||||
padding: 30px 20px;
|
||||
position: static;
|
||||
align-items: center;
|
||||
border-radius: 0;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
}
|
||||
@@ -471,23 +493,17 @@
|
||||
width: auto;
|
||||
margin: 0 0 15px 0;
|
||||
padding: 20px;
|
||||
border-radius: 0;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .header {
|
||||
padding-top: 0;
|
||||
text-align: center;
|
||||
#homepage-me .matter .matter-content .message-box .stats {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .header .avatar {
|
||||
#homepage-me .matter .matter-content .message-box .header {
|
||||
display: none;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .header .username {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .info-list {
|
||||
padding-top: 15px;
|
||||
padding-top: 0;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .info-list .item {
|
||||
width: 50%;
|
||||
@@ -498,38 +514,21 @@
|
||||
justify-content: center;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area {
|
||||
border-radius: 0;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .operation-box {
|
||||
padding: 15px 20px;
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
display: flex;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .operation-box::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .operation-box .operation-item {
|
||||
flex-shrink: 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .operation-box .operation-item:not(:last-child) {
|
||||
margin-right: 30px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .classify {
|
||||
padding: 10px 20px 20px;
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: none;
|
||||
#homepage-me .matter .matter-content .list-area .operation-box .operation-item.pitch::after {
|
||||
bottom: -18px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .classify::-webkit-scrollbar {
|
||||
display: none;
|
||||
#homepage-me .matter .matter-content .list-area .classify {
|
||||
padding: 20px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .classify .item {
|
||||
flex-shrink: 0;
|
||||
@@ -537,7 +536,10 @@
|
||||
padding: 0 15px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .issue-data {
|
||||
padding: 0 20px 15px;
|
||||
padding: 0 20px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .list-load-box {
|
||||
margin: 0 20px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .list-box {
|
||||
padding: 0 20px;
|
||||
@@ -557,6 +559,30 @@
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 768px) {
|
||||
.head-top .sign-in {
|
||||
display: none !important;
|
||||
}
|
||||
.head-top .input-box {
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 5px;
|
||||
}
|
||||
.head-top .input-box .placeholder {
|
||||
display: none;
|
||||
}
|
||||
.head-top .input-box .input {
|
||||
display: none;
|
||||
}
|
||||
.head-top .input-box .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%;
|
||||
@@ -566,6 +592,27 @@
|
||||
width: 100%;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .operation-box {
|
||||
padding: 15px 8px;
|
||||
font-size: 15px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .classify {
|
||||
padding: 20px 8px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .classify .item {
|
||||
padding: 0 7px;
|
||||
font-size: 13px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .list-box {
|
||||
padding: 0 8px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .list-load-box {
|
||||
margin: 0 8px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .list-area .empty {
|
||||
margin-left: 8px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
#homepage-me .matter .matter-content .message-box .info-list .item {
|
||||
width: 100%;
|
||||
margin-bottom: 12px;
|
||||
@@ -574,4 +621,17 @@
|
||||
#homepage-me .matter .matter-content .message-box .info-list .item .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