From 0fd94ee8bf073730dd01cdc03fb6c69d03008816 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Mon, 2 Nov 2026 21:04:40 +0800 Subject: [PATCH] =?UTF-8?q?style(=E9=80=89=E9=A2=98):=20=E5=B7=A6=E6=A0=8F?= =?UTF-8?q?=E7=9F=A5=E8=AF=86=E7=82=B9=E6=95=B4=E5=88=97=E6=94=BE=E5=BE=97?= =?UTF-8?q?=E4=B8=8B=EF=BC=8C=E4=B8=8D=E5=86=8D=E5=86=92=E5=87=BA=E4=B8=80?= =?UTF-8?q?=E6=A0=B9=E6=BB=9A=E5=8A=A8=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 每行 36px 时全部 + 必会题 + 13 个知识点比框高出 40px 左右,「总是显示滚动条」的电脑上 左边多了一根滚动条。压到 32px 一行,1366×768 上是 493px,框高 508px。 Co-Authored-By: Claude Opus 5.5 --- apps/web/src/oj/classroom/components/ProblemPicker.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/web/src/oj/classroom/components/ProblemPicker.vue b/apps/web/src/oj/classroom/components/ProblemPicker.vue index c2c9a3d..a0db13c 100644 --- a/apps/web/src/oj/classroom/components/ProblemPicker.vue +++ b/apps/web/src/oj/classroom/components/ProblemPicker.vue @@ -258,18 +258,20 @@ const vars = computed(() => ({ } /* ---- 左栏:知识点 ---- */ +/* 全部 + 必会题 + 十几个知识点要整列放下、不出滚动条:36px 一行时差 40px,「总是显示滚动条」 + 的电脑上冒出一根。32px 一行在 1366×768(框高 508px)上是 493px */ .tags { flex: 0 0 168px; overflow-y: auto; display: flex; flex-direction: column; - gap: 2px; + gap: 1px; padding-right: 12px; border-right: 1px solid var(--divider); } .tag-head { - margin: 10px 10px 4px; + margin: 8px 10px 2px; font-size: 13px; color: var(--text3); } @@ -279,7 +281,7 @@ const vars = computed(() => ({ justify-content: space-between; align-items: center; gap: 8px; - height: 36px; + height: 32px; padding: 0 10px; border: 0; border-radius: 6px;