Skip to content

Commit

Permalink
fix: css style
Browse files Browse the repository at this point in the history
  • Loading branch information
X3ZvaWQ committed Oct 30, 2023
1 parent 698156c commit 39bc026
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions src/assets/css/database/item.less
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,20 @@
}
}

.u-rt-tags {
display: inline-flex;
align-items: center;
}

.u-ref-count {
.mr(8px);
.fz(10px);
background-color: #3d454d;
color: #fff;
padding: 2px 8px 2px 5px;
border-radius: 2px;
border-radius: 4px;
font-weight: normal;
display: inline-block;
transform-origin: left center;
}

.u-id {
Expand Down
2 changes: 1 addition & 1 deletion src/components/database/item/buff.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<span class="u-name-primary">{{ data.Name }}</span>
<span class="u-name-secondary" v-if="data.BuffName"> ({{ data.BuffName }})</span>
</div>
<div>
<div class="u-rt-tags">
<span v-if="refCount" class="u-ref-count"> <i class="el-icon-connection"></i> 引用指数 {{ refCount }}</span>
<el-tag size="small" @click.stop="copy('BuffID')">
<i class="el-icon-document-copy u-copy"></i>
Expand Down
4 changes: 2 additions & 2 deletions src/components/database/item/doodad.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<img class="u-icon" :title="'IconID:' + 10909" :src="iconLink(10909)" />
<div class="u-title">
<span class="u-name">{{ data.Name }}</span>
<div>
<div class="u-rt-tags">
<span v-if="refCount" class="u-ref-count"> <i class="el-icon-connection"></i> 引用指数 {{ refCount }}</span>
<el-tag size="small" @click.stop="copy('ID')">
<i class="el-icon-document-copy u-copy"></i>
<span class="u-id" title="点击快速复制">ID:{{ data.BuffID }}</span>
<span class="u-id" title="点击快速复制">ID:{{ data.ID }}</span>
</el-tag>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/database/item/skill.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
<span class="u-name-primary">{{ data.Name }}</span>
<span class="u-name-secondary" v-if="data.SkillName"> ({{ data.SkillName }})</span>
</div>
<div>
<div class="u-rt-tags">
<span v-if="refCount" class="u-ref-count">
<i class="el-icon-connection"></i> 引用指数 {{ refCount }}</span
>
<el-tag size="small" @click.stop="copy('SkillID')">
<i class="el-icon-document-copy u-copy"></i>
<span class="u-id" title="点击快速复制">ID:{{ data.BuffID }}</span>
<span class="u-id" title="点击快速复制">ID:{{ data.SkillID }}</span>
</el-tag>
</div>
</div>
Expand Down

0 comments on commit 39bc026

Please sign in to comment.