mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-16 00:49:40 +08:00
parent
994793c967
commit
9771b42c37
@ -2907,6 +2907,24 @@ button.swiper-pagination-bullet {
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
& > .no-avatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
/* min-width: 40px; */
|
||||
/* min-height: 40px; */
|
||||
margin-right: 8px;
|
||||
background: var(--light-b);
|
||||
border-radius: 50%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
|
||||
& > .avatar-info {
|
||||
font-size: 1em;
|
||||
color: var(--dark-c);
|
||||
}
|
||||
}
|
||||
|
||||
.info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
2
templates/assets/css/style.min.css
vendored
2
templates/assets/css/style.min.css
vendored
File diff suppressed because one or more lines are too long
@ -10,8 +10,11 @@
|
||||
<ul class="widget-comment">
|
||||
<li class="item" th:each="comment : ${comments}">
|
||||
<div class="user">
|
||||
<img width="35" height="35" class="avatar" th:src="${comment.owner.avatar}"
|
||||
<img width="35" height="35" th:unless="${#strings.isEmpty(comment.owner.avatar)}" class="avatar" th:src="${comment.owner.avatar}"
|
||||
th:alt="${comment.owner.displayName}">
|
||||
<div th:if="${#strings.isEmpty(comment.owner.avatar)}" class="no-avatar">
|
||||
<span class="avatar-info">[[${#strings.substring(comment.owner.displayName, 0, 1)}]]</span>
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="author">[[${comment.owner.displayName}]]</div>
|
||||
<span class="date">[[${#temporals.format(comment.spec.creationTime, 'yyyy-MM-dd')}]]</span>
|
||||
|
Loading…
x
Reference in New Issue
Block a user