优化多个组件的样式,添加 scoped 样式以避免样式冲突

This commit is contained in:
jxxghp
2025-03-31 18:44:56 +08:00
parent 3e36cb6e31
commit 5a8eb5b10e
16 changed files with 16 additions and 17 deletions

View File

@@ -116,7 +116,7 @@ function goPersonDetail() {
</VHover>
</template>
<style lang="scss">
<style lang="scss" scoped>
.person-card {
background-image: linear-gradient(45deg, rgb(var(--v-theme-background)), rgb(var(--v-theme-surface)) 60%);
}

View File

@@ -421,7 +421,7 @@ function onSubscribeEditRemove() {
/>
</div>
</template>
<style lang="scss">
<style lang="scss" scoped>
.subscribe-card-background {
background-image: linear-gradient(90deg, rgba(31, 41, 55, 47%) 0%, rgb(31, 41, 55) 100%);
}

View File

@@ -177,7 +177,7 @@ function doDelete() {
/>
</div>
</template>
<style lang="scss">
<style lang="scss" scoped>
.subscribe-card-background {
background-image: linear-gradient(90deg, rgba(31, 41, 55, 47%) 0%, rgb(31, 41, 55) 100%);
}

View File

@@ -123,9 +123,9 @@ onMounted(() => {
<!-- 媒体标题 -->
<div class="card-header">
<div class="media-title-wrapper flex flex-row flex-wrap justify-start">
<h3 class="media-title me-2">
<span class="media-title me-2">
{{ media?.title ?? meta?.name }}
</h3>
</span>
<span v-if="meta?.season_episode" class="season-tag">{{ meta?.season_episode }}</span>
</div>

View File

@@ -299,7 +299,7 @@ onMounted(() => {
}
.media-title {
font-size: 1.1rem;
font-size: 1.125rem;
font-weight: 600;
color: rgba(var(--v-theme-on-surface), 0.87);
}

View File

@@ -198,7 +198,7 @@ onBeforeMount(() => {
</VDialog>
</template>
<style lang="scss">
<style lang="scss" scoped>
.vue-media-back {
background-image: linear-gradient(
180deg,

View File

@@ -410,7 +410,6 @@ function getIndentLevel(path: string, ancestorPath: string) {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding: 8px 0;
}
.tree-item-container {