mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-25 07:30:46 +08:00
feat: 新增贡献者前端标识
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
<div v-if="isMobile" class="info-content-header">
|
||||
<div class="user-name">
|
||||
{{ author.username }}
|
||||
<i class="fas fa-medal medal-icon"></i>
|
||||
<router-link
|
||||
v-if="author.displayMedal"
|
||||
class="user-medal"
|
||||
@@ -57,6 +58,7 @@
|
||||
<div v-if="!isMobile" class="info-content-header">
|
||||
<div class="user-name">
|
||||
{{ author.username }}
|
||||
<i class="fas fa-medal medal-icon"></i>
|
||||
<router-link
|
||||
v-if="author.displayMedal"
|
||||
class="user-medal"
|
||||
@@ -739,6 +741,14 @@ export default {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.medal-icon {
|
||||
font-size: 12px;
|
||||
margin-left: 4px;
|
||||
opacity: 0.6;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.scroller-range {
|
||||
writing-mode: vertical-rl;
|
||||
direction: ltr;
|
||||
@@ -950,6 +960,8 @@ export default {
|
||||
margin-left: 4px;
|
||||
opacity: 0.6;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.post-time {
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
export const medalTitles = {
|
||||
COMMENT: '评论达人',
|
||||
POST: '发帖达人',
|
||||
SEED: '种子用户'
|
||||
SEED: '种子用户',
|
||||
CONTRIBUTOR: '贡献者'
|
||||
}
|
||||
|
||||
export function getMedalTitle(type) {
|
||||
|
||||
Reference in New Issue
Block a user