首页「全部」、提交详情的用户名和题名、题目页「点开看全部」「有 N 道差一点」、 班级对抗的班级名、知识点、后台标题等 30 多处原来和正文同色,鼠标移上去才变色, 手机上根本没有「移上去」。现在一律主题绿,移上去加下划线;没设颜色的文字按钮补上 type="primary"。排名名字列、整行可点的列表、后台 quaternary 次要按钮不动。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b3dca1a271
commit
b0700d0bd9
32 files changed
+141
-53
No files matched your search
@@ -297,7 +297,7 @@ function goCode() {
|
||||
<n-button text type="primary" size="small" @click="versionZoom = true">
|
||||
放大看
|
||||
</n-button>
|
||||
<n-button text size="small" @click="versionOpen = !versionOpen">
|
||||
<n-button text type="primary" size="small" @click="versionOpen = !versionOpen">
|
||||
{{ versionOpen ? "收起" : "展开" }}
|
||||
</n-button>
|
||||
</div>
|
||||
|
||||
@@ -272,7 +272,7 @@ const astRequirements = computed(() => Object.entries(problem.value?.astRequirem
|
||||
<n-button text type="primary" size="small" @click="myFlowchartZoom = true">
|
||||
放大看
|
||||
</n-button>
|
||||
<n-button text size="small" @click="myFlowchartOpen = !myFlowchartOpen">
|
||||
<n-button text type="primary" size="small" @click="myFlowchartOpen = !myFlowchartOpen">
|
||||
{{ myFlowchartOpen ? "收起" : "展开" }}
|
||||
</n-button>
|
||||
</div>
|
||||
|
||||
@@ -325,7 +325,7 @@ watch(query, () => {
|
||||
放回编辑器
|
||||
</n-button>
|
||||
<n-button size="small" @click="copy(row.id)">复制</n-button>
|
||||
<n-button size="small" text class="more" @click="openDetail(row.id)">
|
||||
<n-button size="small" text type="primary" class="more" @click="openDetail(row.id)">
|
||||
完整详情 ›
|
||||
</n-button>
|
||||
</div>
|
||||
@@ -499,12 +499,12 @@ watch(query, () => {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
color: v-bind("theme.textColor3");
|
||||
color: v-bind("theme.primaryColor");
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.code-more:hover {
|
||||
color: v-bind("theme.primaryColor");
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.detail-actions {
|
||||
|
||||
@@ -169,11 +169,11 @@ const fresh = computed(() => props.progress.solved === 0)
|
||||
|
||||
.next b {
|
||||
font-weight: 600;
|
||||
color: v-bind("theme.textColor1");
|
||||
color: v-bind("theme.primaryColor");
|
||||
}
|
||||
|
||||
.next:hover b {
|
||||
color: v-bind("theme.primaryColor");
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.almost {
|
||||
@@ -181,7 +181,7 @@ const fresh = computed(() => props.progress.solved === 0)
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
color: v-bind("theme.textColor3");
|
||||
color: v-bind("theme.primaryColor");
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
@@ -189,7 +189,7 @@ const fresh = computed(() => props.progress.solved === 0)
|
||||
}
|
||||
|
||||
.almost:hover {
|
||||
color: v-bind("theme.primaryColor");
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.start {
|
||||
|
||||
@@ -10,6 +10,7 @@ const cache = new Map<string, Promise<ProblemRow[]>>()
|
||||
|
||||
<script setup lang="ts">
|
||||
import { storeToRefs } from "pinia"
|
||||
import { useThemeVars } from "naive-ui"
|
||||
import { getSimilarProblems } from "oj/api"
|
||||
import { useProblemStore } from "oj/store/problem"
|
||||
|
||||
@@ -19,6 +20,8 @@ import { useProblemStore } from "oj/store/problem"
|
||||
*/
|
||||
const props = defineProps<{ title: string }>()
|
||||
|
||||
const theme = useThemeVars()
|
||||
|
||||
const { problem } = storeToRefs(useProblemStore())
|
||||
const list = ref<ProblemRow[]>([])
|
||||
|
||||
@@ -90,6 +93,7 @@ function difficultyType(difficulty: string) {
|
||||
}
|
||||
|
||||
.name {
|
||||
color: v-bind("theme.primaryColor");
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
Reference in new issue
Block a user