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 09:57:56 +08:00
1 parent 773d15b033
commit 1c54371fc5
1 file changed
+3 -6
@@ -2,10 +2,10 @@
import { storeToRefs } from "pinia"
import { useProblemStore } from "oj/store/problem"
import { useCollabStore } from "shared/store/collab"
import { LANGUAGE_SHOW_VALUE } from "utils/constants"
/**
* 老师协作时右栏顶上的一条:正在帮谁、他用什么语言、看他交过什么、结束协作。
* 老师协作时右栏顶上的一条:正在帮谁、看他交过什么、结束协作。语言不写(用户说的):
* 编辑器工具栏的语言下拉就摆在下面,这条短一点,长名字也放得下。
*
* 原来这几样挤在工具栏里(一个标签 + 一个按钮),和老师自己的「提交」「课堂统计」混在一行,
* 一眼看不出「现在编辑器里是学生的代码」。学生那边不加横幅,省下编辑器的 40px。
@@ -33,10 +33,7 @@ function openHisSubmissions() {
<template>
<div v-if="collabStore.room" class="collab-bar" role="status">
<span class="dot" aria-hidden="true" />
<span class="who">
正在帮 {{ collabStore.room.peerName }} ·
{{ LANGUAGE_SHOW_VALUE[collabStore.room.language] }}
</span>
<span class="who">正在帮 {{ collabStore.room.peerName }}</span>
<span class="note">你改的他马上能看到</span>
<span class="spacer" />
<button type="button" class="ghost" @click="openHisSubmissions">看他交过什么</button>