From 2957db9ea95f24138849082d8aa76e042395d10e Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Sun, 25 Oct 2026 18:56:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=89=8B=E6=9C=BA):=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=BC=A9=E8=BF=9B=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=87=BA=E6=9D=A5?= =?UTF-8?q?=E3=80=81=E7=9B=B8=E4=BC=BC=E9=A2=98=E9=95=BF=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E6=8C=A4=E5=87=BA=E5=B1=8F=E5=B9=95=E3=80=81=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=A1=86=E4=B8=A4=E8=BE=B9=E7=95=99=E7=81=B0=E8=BE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 题目页编辑器:手机上折行时把行首空格合并掉了,代码看着全部顶格(代码本身没丢) - 相似题推荐:长标题把难度挤出屏幕,现在出省略号 - 登录、注册、看板「讲错误」:本该铺满整屏,被全站弹框「左右各留 16px」卡窄; 高度跟着浏览器工具栏变,底下的入口不再被压住 - 排名页底部三张小卡:「这学期 · 本年级」被截断,现在放不下就折两行,名次对齐 - 我的主页:「成就 · 一共 38 个」不再把「个」单独挤到第二行 Co-Authored-By: Claude Opus 5.5 --- apps/web/src/oj/classroom/components/ExplainModal.vue | 3 +++ apps/web/src/oj/problem/components/SimilarProblems.vue | 5 +++++ apps/web/src/oj/rank/components/RankMe.vue | 8 ++++++-- apps/web/src/oj/user/components/ProfileCard.vue | 5 ++++- apps/web/src/shared/components/Login.vue | 5 +++++ apps/web/src/shared/components/Signup.vue | 5 +++++ apps/web/src/shared/extensions/hangIndent.ts | 3 ++- 7 files changed, 30 insertions(+), 4 deletions(-) diff --git a/apps/web/src/oj/classroom/components/ExplainModal.vue b/apps/web/src/oj/classroom/components/ExplainModal.vue index 9abdd31..39955c4 100644 --- a/apps/web/src/oj/classroom/components/ExplainModal.vue +++ b/apps/web/src/oj/classroom/components/ExplainModal.vue @@ -273,7 +273,10 @@ kbd { .sheet.narrow { width: calc(100vw - 16px); + /* 全站给 .n-modal 的「左右各留 16px」在这里不要 */ + max-width: none; max-height: calc(100vh - 16px); + max-height: calc(100dvh - 16px); padding: 12px 14px 16px; gap: 12px; } diff --git a/apps/web/src/oj/problem/components/SimilarProblems.vue b/apps/web/src/oj/problem/components/SimilarProblems.vue index 65dc4e4..04ee688 100644 --- a/apps/web/src/oj/problem/components/SimilarProblems.vue +++ b/apps/web/src/oj/problem/components/SimilarProblems.vue @@ -79,6 +79,11 @@ function difficultyType(difficulty: string) { margin: 0 0 8px; } +/* 列表项的内容区默认按内容撑宽,长标题会把难度挤出屏幕,省略号也不出来 */ +.similar :deep(.n-list-item__main) { + min-width: 0; +} + .link { display: inline-flex; align-items: center; diff --git a/apps/web/src/oj/rank/components/RankMe.vue b/apps/web/src/oj/rank/components/RankMe.vue index 3d8e819..ead1e0c 100644 --- a/apps/web/src/oj/rank/components/RankMe.vue +++ b/apps/web/src/oj/rank/components/RankMe.vue @@ -175,7 +175,8 @@ function threatNote(me: RankRow, behind: RankRow) {