From b46529c7415c921c2982652091d27f582b4891bb Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 29 Sep 2026 19:12:14 +0800 Subject: [PATCH] =?UTF-8?q?style(=E6=8F=90=E4=BA=A4=E5=88=97=E8=A1=A8):=20?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=94=BE=E5=AE=BD=E3=80=81=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=8C=BA=E6=94=B6=E7=AA=84=EF=BC=8C=E9=A2=98=E7=9B=AE=E5=90=8D?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E8=A2=AB=E6=88=AA=E6=88=90=E4=B8=89=E4=B8=AA?= =?UTF-8?q?=E5=AD=97=EF=BC=9B=E5=8F=AA=E7=9C=8B=E4=B8=80=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E6=97=B6=E7=AD=9B=E9=80=89=E6=A1=86=E6=8D=A2=E6=88=90=E5=90=8D?= =?UTF-8?q?=E5=AD=97=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 左右从「列表 560 固定 + 代码占满」改成 56% : 44%(大屏列表最宽 1000):学生的代码大多 十来行,右边原来空着一大片,左边的题目名却只剩三个字;用户名一列 132 → 116 - 右栏顶上固定一行:「只看他 / 只看这题」只留漏斗图标,题目名太长时省略,翻条时代码区不再上下跳 - 按整名只看一个人时(只看他、协作条、看板点进来),108px 的输入框装不下八九个字的用户名, 换成「只看 xxx ×」的标签;列表里题目名加上鼠标提示 Co-Authored-By: Claude Opus 5.5 --- .../submission/components/FlowchartPane.vue | 41 ++++++++++++--- .../submission/components/SubmissionPane.vue | 30 +++++++++-- apps/web/src/oj/submission/list.vue | 52 ++++++++++++++----- 3 files changed, 99 insertions(+), 24 deletions(-) diff --git a/apps/web/src/oj/submission/components/FlowchartPane.vue b/apps/web/src/oj/submission/components/FlowchartPane.vue index 298f951..177970d 100644 --- a/apps/web/src/oj/submission/components/FlowchartPane.vue +++ b/apps/web/src/oj/submission/components/FlowchartPane.vue @@ -150,17 +150,32 @@ const canRetry = computed( > - · - + {{ row.problemDisplayId }} {{ row.problemTitle }} -
· - + {{ row.problemDisplayId }} {{ row.problemTitle }} !!exactFor.value && query.username === exactFor.value) + +function clearPerson() { + exactFor.value = "" + query.username = "" +} + function filterUser(username: string) { exactFor.value = username query.myself = "0" @@ -703,8 +711,20 @@ function dayBreak(index: number) { /> + + {{ submissionClockText(row.createTime) }} - + {{ row.problemDisplayId }} {{ row.problemTitle }} @@ -883,7 +903,7 @@ function dayBreak(index: number) { - + {{ row.problemDisplayId }} {{ row.problemTitle }} @@ -1180,6 +1200,15 @@ function dayBreak(index: number) { font-weight: 600; } +.chip.person { + max-width: 180px; + padding: 0 10px; +} + +.chip.person .person-name { + font-size: 13px; +} + .lesson b { font-weight: 600; } @@ -1195,9 +1224,11 @@ function dayBreak(index: number) { display: flex; } +/* 列表占多一点:学生的代码大多十来行、一行几十个字,右边给多了是一片空白(用户看过定的)。 + 大屏上列表最宽 1000,再宽一行里全是空隙 */ .list { - width: 560px; - flex: none; + flex: 0 0 56%; + max-width: 1000px; box-sizing: border-box; border-right: 1px solid v-bind("theme.dividerColor"); display: flex; @@ -1205,14 +1236,9 @@ function dayBreak(index: number) { min-height: 0; } -/* 1366 以下(机房 1280 的屏)左栏收窄一点,右边的代码多留几列 */ -@media (max-width: 1365px) { - .list { - width: 520px; - } -} - .mobile .list { + flex: 1 1 auto; + max-width: none; width: 100%; border-right: 0; } @@ -1343,7 +1369,7 @@ function dayBreak(index: number) { } .c-user { - width: 132px; + width: 116px; flex: none; display: flex; overflow: hidden;