修复关于页面中赞赏名单在移动端下头像错位的问题

This commit is contained in:
UPToZ 2024-06-01 14:49:11 +08:00
parent 45e93608ab
commit 236e0d6547
2 changed files with 117 additions and 95 deletions

View File

@ -16337,7 +16337,7 @@ span.hexo-douban-pagenum {
padding: 1rem;
border-radius: 12px;
border: var(--style-border-always);
width: calc((100% / 6) - 0.5rem);
width: calc((100% / 4) - 0.5rem);
margin: 0rem 0.25rem 0.5rem 0.25rem;
box-shadow: var(--heo-shadow-border);
}
@ -16349,11 +16349,12 @@ span.hexo-douban-pagenum {
@media screen and (max-width: 1200px) {
.author-content-item.single.reward .reward-list-all .reward-list-item {
width: calc((100% / 4) - 0.5rem);
width: calc((100% / 3) - 0.5rem);
}
.author-content-item.single.reward .reward-list-all .reward-list-item .reward-list-item-avatar {
width: 32%;
/* display: none; */
/* width: 32%; */
}
}
@ -16362,19 +16363,19 @@ span.hexo-douban-pagenum {
width: calc((100% / 2) - 0.5rem);
}
.author-content-item.single.reward .reward-list-all .reward-list-item .reward-list-item-avatar {
/* .author-content-item.single.reward .reward-list-all .reward-list-item .reward-list-item-avatar {
width: 20%;
}
} */
}
@media screen and (max-width: 768px) {
.author-content-item.single.reward .reward-list-all .reward-list-item {
width: 100%;
width: calc((100% / 2) - 0.5rem);
}
.author-content-item.single.reward .reward-list-all .reward-list-item .reward-list-item-avatar {
/* .author-content-item.single.reward .reward-list-all .reward-list-item .reward-list-item-avatar {
width: 9%;
}
} */
}
@media screen and (max-width: 520px) {
@ -16382,9 +16383,9 @@ span.hexo-douban-pagenum {
width: 100%;
}
.author-content-item.single.reward .reward-list-all .reward-list-item .reward-list-item-avatar {
/* .author-content-item.single.reward .reward-list-all .reward-list-item .reward-list-item-avatar {
width: 20%;
}
} */
}
.author-content-item.single.reward .author-content-item-description {
@ -16407,19 +16408,34 @@ span.hexo-douban-pagenum {
width: 100%;
}
.author-content-item.single.reward .reward-list-all .reward-list-item .reward-list-item-container {
display: flex;
justify-content: flex-start;
justify-content: space-between;
height: auto;
}
.author-content-item.single.reward .reward-list-all .reward-list-item .reward-list-item-container .reward-list-item-content {
flex: 2;
display: flex;
flex-direction: column;
justify-content: space-between;
margin-left: 15px;
}
.author-content-item.single.reward .reward-list-all .reward-list-item .reward-list-item-avatar {
width: 32%;
width: 80px;
float: left;
z-index: 10;
position: static;
height: 40px;
transform: translateY(-40%);
height: 80px;
/* transform: translateY(-40%); */
}
.author-content-item.single.reward .reward-list-all .reward-list-item .reward-list-item-avatar img {
border-radius: 50%;
width: 80%;
margin-top: 0.2rem;
width: 80px;
/* margin-top: 0.4rem; */
}
.author-content-item.single.reward .reward-list-all .reward-list-item .reward-list-item-avatar-group {

View File

@ -61,14 +61,17 @@
<div class="reward-list-item" th:each="authorReward : ${authorRewardList}">
<div th:if="${not #strings.isEmpty(authorReward.avatar)}">
<div>
<div class="reward-list-item-container">
<!-- 头像 -->
<div class="reward-list-item-avatar">
<img th:src="${authorReward.avatar}" th:alt="${authorReward.name}">
</div>
<div class="reward-list-item-content">
<!-- 名称 -->
<div style="z-index:20;float: left;" class="reward-list-item-avatar-group">
<div class="reward-list-item-name">[[${authorReward.name}]]</div>
</div>
</div>
<!-- 金额及时间 -->
<div class="reward-list-bottom-group">
<div th:if="${#conversions.convert(authorReward.amount, 'java.math.BigDecimal') < #conversions.convert(theme.config.aboutReward.rewardNumber, 'java.math.BigDecimal')}" class="reward-list-item-money">¥
[[${authorReward.amount}]]
@ -79,6 +82,9 @@
<time class="datatime reward-list-item-time">[[${authorReward.datatime}]]</time>
</div>
</div>
</div>
</div>
<div th:if="${#strings.isEmpty(authorReward.avatar)}">
<div class="reward-list-item-name">[[${authorReward.name}]]</div>
<div class="reward-list-bottom-group">