style(顶栏): 「课堂看板」夹在两个框中间像是没对齐,改成和「今日统计」一样的按钮
Deploy / deploy (push) Canceled after 0s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-09-30 01:20:01 +08:00
1 parent e3eb41288c
commit b19fc3c1d9
1 file changed
+10 -16
+10 -16
View File
@@ -255,16 +255,18 @@ const options = computed<Array<DropdownOption | DropdownDividerOption>>(() => {
<div class="actions"> <div class="actions">
<ProblemJumpBox v-if="isDesktop" :compact="compact" /> <ProblemJumpBox v-if="isDesktop" :compact="compact" />
<template v-if="isDesktop && collabStore.isTeacher"> <template v-if="isDesktop && collabStore.isTeacher">
<RouterLink <!-- 和提交列表的「今日统计」「数据统计」同一种按钮:平时没底色,悬停出底色 -->
to="/classroom" <n-button
quaternary
class="tool-link" class="tool-link"
:class="{ active: active === 'classroom' }" :type="active === 'classroom' ? 'primary' : 'default'"
title="课堂看板" title="课堂看板"
aria-label="课堂看板" aria-label="课堂看板"
@click="router.push('/classroom')"
> >
<Icon icon="ph:monitor" :width="16" /> <template #icon><Icon icon="ph:monitor" /></template>
<span v-if="!compact">课堂看板</span> <template v-if="!compact">课堂看板</template>
</RouterLink> </n-button>
<span class="divider"></span> <span class="divider"></span>
</template> </template>
<n-dropdown v-if="isMobile" :options="mobileMenus" size="large" @select="handleNavSelect"> <n-dropdown v-if="isMobile" :options="mobileMenus" size="large" @select="handleNavSelect">
@@ -388,17 +390,9 @@ const options = computed<Array<DropdownOption | DropdownDividerOption>>(() => {
flex: none; flex: none;
} }
/* 按钮左右自带的留白吃回去,和两边的间距不变 */
.tool-link { .tool-link {
display: flex; margin: 0 -8px;
align-items: center;
gap: 5px;
color: v-bind("theme.textColor3");
text-decoration: none;
}
.tool-link:hover,
.tool-link.active {
color: v-bind("theme.primaryColor");
} }
.divider { .divider {