mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-14 20:53:20 +08:00
✨ 重构真境剧诗页面UI,优化组件结构与样式
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<!-- 标题栏组件 -->
|
||||
<template>
|
||||
<div class="tsl-box">
|
||||
<img src="@/assets/icons/arrow-right.svg" alt="right" />
|
||||
<slot name="icon">
|
||||
<img alt="right" class="tsl-icon" src="@/assets/icons/arrow-right.svg" />
|
||||
</slot>
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
@@ -18,7 +21,7 @@
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.tsl-box :first-child {
|
||||
.tsl-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
box-sizing: border-box;
|
||||
@@ -26,7 +29,7 @@
|
||||
filter: invert(0.75);
|
||||
}
|
||||
|
||||
.dark .tsl-box :first-child {
|
||||
.dark .tsl-icon {
|
||||
filter: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user