Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e3eb41288c
commit
b19fc3c1d9
1 file changed
+10
-16
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user