feat(顶栏): 顶栏重排——点题号框就能看到这节课的题,老师的「N 人举手」挪上顶栏、不再一条条弹提示
Deploy / deploy (push) Canceled after 0s

- 导航改成 题目 / 题单 / 比赛 / 排名 / 自学 / 更多,当前页浅绿底块;提交、公告收进「更多」
- 题号框点开先列出这节课的题(做对没有、下一道),输入时按题号或标题筛,回车照旧直达;
  只在今天有课、不在题目页时出现
- 后台入口、暗色开关收进个人菜单;老师顶栏只留课堂看板
- 「N 人举手」前台、后台顶栏都有,放最末尾:没人等不显示,人数变多时闪一下;
  新求助的 toast 删掉(一节课能弹十几次,投屏时还弹在全班面前)
- 1280 以下题号框变窄、课堂看板只留图标、名字最宽 120;1024 以下允许折行

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-09-29 09:24:02 +08:00
1 parent 5b43015be4
commit 56ef4a999c
5 files changed
+629 -212

No files matched your search

+4
View File
@@ -7,6 +7,7 @@ import { useDarkTransition } from "shared/composables/darkTransition"
import { STORAGE_KEY } from "utils/constants"
import storage from "utils/storage"
import { useUserStore } from "../store/user"
import HelpButton from "../components/HelpButton.vue"
import type { MenuOption } from "naive-ui"
const route = useRoute()
@@ -284,6 +285,9 @@ onMounted(async () => {
<template v-if="!isMobile">{{ userStore.user.username }}</template>
</n-button>
</n-dropdown>
<!-- 老师在后台改题时也得知道有人举手(前台顶栏在这里是卸载的)。
和前台一样放最末尾,出现、消失时别的按钮不挪 -->
<HelpButton size="small" />
</n-flex>
</n-layout-header>
<n-layout-content