mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
💄 微调UI
This commit is contained in:
@@ -156,7 +156,6 @@ function getEmojiName() {
|
||||
cursor: pointer;
|
||||
text-decoration: underline solid #00c3ff;
|
||||
text-underline-position: under;
|
||||
transform: translateY(2px);
|
||||
}
|
||||
|
||||
.tp-text-emoji {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
>
|
||||
<img :src="constellation.icon" alt="constellation" class="tua-dcc-icon" />
|
||||
<div v-if="!constellation.is_actived" class="tua-dcc-lock">
|
||||
<v-icon size="10px">mdi-lock</v-icon>
|
||||
<v-icon size="10px" color="var(--tgc-od-white)">mdi-lock</v-icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
>
|
||||
<img :src="skill.icon" alt="talent" class="tua-dct-icon" />
|
||||
<div v-if="!skill.is_unlock" class="tua-dct-lock">
|
||||
<v-icon size="10px">mdi-lock</v-icon>
|
||||
<v-icon size="10px" color="var(--tgc-od-white)">mdi-lock</v-icon>
|
||||
</div>
|
||||
<div class="tua-dct-level" v-if="skill.is_unlock && skill.skill_type === 1">
|
||||
{{ skill.level === 0 ? 1 : skill.level }}
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
<template>
|
||||
<TOverlay v-model="visible" hide blur-val="20px" :to-click="onCancel">
|
||||
<TOverlay v-model="visible" hide blur-val="5px" :to-click="onCancel">
|
||||
<div class="tdo-box">
|
||||
<div class="tdo-avatars-container">
|
||||
<v-tabs v-model="avatarTab" density="compact" center-active>
|
||||
<v-tabs
|
||||
v-model="avatarTab"
|
||||
density="compact"
|
||||
center-active
|
||||
slider-color="var(--tgc-od-white)"
|
||||
>
|
||||
<v-tab
|
||||
v-for="avatar in avatars"
|
||||
:key="avatar.avatar.id"
|
||||
@@ -10,7 +15,17 @@
|
||||
@click="onAvatarClick(avatar)"
|
||||
:title="avatar.avatar.name"
|
||||
>
|
||||
<v-avatar :image="avatar.avatar.side_icon" class="tdo-avatar" />
|
||||
<div
|
||||
class="tdo-avatar"
|
||||
:style="{
|
||||
backgroundColor:
|
||||
props.avatar.avatar.id === avatar.avatar.id
|
||||
? 'var(--tgc-od-white)'
|
||||
: 'transparent',
|
||||
}"
|
||||
>
|
||||
<img :src="avatar.avatar.side_icon" :alt="avatar.avatar.name" />
|
||||
</div>
|
||||
</v-tab>
|
||||
</v-tabs>
|
||||
</div>
|
||||
@@ -122,8 +137,27 @@ function onAvatarClick(avatar: TGApp.Sqlite.Character.UserRole): void {
|
||||
width: v-bind(avatarsWidth);
|
||||
}
|
||||
|
||||
/* stylelint-disable selector-class-pattern */
|
||||
.tdo-avatars-container :deep(.v-slide-group__next),
|
||||
.tdo-avatars-container :deep(.v-slide-group__prev) {
|
||||
color: var(--tgc-od-white);
|
||||
}
|
||||
|
||||
.tdo-avatar {
|
||||
position: relative;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border: 1px solid var(--tgc-white-1);
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
|
||||
img {
|
||||
position: absolute;
|
||||
top: -4px;
|
||||
left: -1px;
|
||||
width: 30px;
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
|
||||
.tdo-card-container {
|
||||
|
||||
Reference in New Issue
Block a user