From 76774b364f2e75872b6ae3d1134932f49abfa5ce Mon Sep 17 00:00:00 2001 From: scisaga Date: Fri, 10 Apr 2026 02:09:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=AB=AF=E8=AF=A6=E6=83=85=E9=A1=B5=E4=BE=A7=E6=A0=8F=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/admin.css | 36 ++++-- static/admin/pages/attempt-detail.html | 148 +++++++++++++------------ static/admin/pages/quiz-detail.html | 66 +++++------ static/assets/css/admin/components.css | 30 +++++ static/public.css | 10 -- 5 files changed, 165 insertions(+), 125 deletions(-) diff --git a/static/admin.css b/static/admin.css index 8e6c944..cfec6dd 100644 --- a/static/admin.css +++ b/static/admin.css @@ -3312,16 +3312,6 @@ font-size: 1.05rem; } } - .xl\:sticky { - @media (width >= 80rem) { - position: sticky; - } - } - .xl\:top-6 { - @media (width >= 80rem) { - top: calc(var(--spacing) * 6); - } - } .xl\:hidden { @media (width >= 80rem) { display: none; @@ -3678,6 +3668,12 @@ position: relative; min-width: 0; } + .admin-sticky-aside { + min-width: 0; + } + .admin-sticky-aside__body { + min-width: 0; + } .admin-subsurface { border-color: rgba(37, 99, 235, 0.12); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05); @@ -3791,6 +3787,26 @@ width: 6.5rem; height: 6.5rem; } + @media (min-width: 1280px) { + .admin-sticky-aside { + position: sticky; + top: 1.5rem; + display: flex; + max-height: calc(100vh - 3rem); + flex-direction: column; + overflow: hidden; + align-self: flex-start; + } + .admin-sticky-aside__body { + flex: 1 1 auto; + min-height: 0; + overflow-y: auto; + overscroll-behavior: contain; + scrollbar-gutter: stable; + padding-right: 0.35rem; + margin-right: -0.35rem; + } + } .assignment-surface { position: relative; isolation: isolate; diff --git a/static/admin/pages/attempt-detail.html b/static/admin/pages/attempt-detail.html index 013c379..eda1a94 100644 --- a/static/admin/pages/attempt-detail.html +++ b/static/admin/pages/attempt-detail.html @@ -151,102 +151,104 @@

答题回放

智能评价

汇总总分、主倾向、综合分析和候选人简评。

-
-
-
-
总分
-
-
-
-
结果模式
-
+
+
+
+
+
总分
+
+
+
+
结果模式
+
+
-
-
-
主倾向
-
- +
+
主倾向
+
+ +
-
-
-
维度对照
-
- +
-
-
-
维度累计
-
- +
-
-
-
综合分析
-
-
+
+
综合分析
+
+
-
-
候选人简评
-
-
+
+
候选人简评
+
+
-
-
-
diff --git a/static/admin/pages/quiz-detail.html b/static/admin/pages/quiz-detail.html index 49448f8..cbe29a1 100644 --- a/static/admin/pages/quiz-detail.html +++ b/static/admin/pages/quiz-detail.html @@ -240,7 +240,7 @@

按题
@@ -253,42 +253,44 @@

版本历史

-
- +
-
- 暂无版本历史 +
+ 暂无版本历史 +
diff --git a/static/assets/css/admin/components.css b/static/assets/css/admin/components.css index 04d2450..02c7951 100644 --- a/static/assets/css/admin/components.css +++ b/static/assets/css/admin/components.css @@ -135,6 +135,14 @@ min-width: 0; } + .admin-sticky-aside { + min-width: 0; + } + + .admin-sticky-aside__body { + min-width: 0; + } + .admin-subsurface { border-color: rgba(37, 99, 235, 0.12); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05); @@ -270,6 +278,28 @@ height: 6.5rem; } + @media (min-width: 1280px) { + .admin-sticky-aside { + position: sticky; + top: 1.5rem; + display: flex; + max-height: calc(100vh - 3rem); + flex-direction: column; + overflow: hidden; + align-self: flex-start; + } + + .admin-sticky-aside__body { + flex: 1 1 auto; + min-height: 0; + overflow-y: auto; + overscroll-behavior: contain; + scrollbar-gutter: stable; + padding-right: 0.35rem; + margin-right: -0.35rem; + } + } + .assignment-surface { position: relative; isolation: isolate; diff --git a/static/public.css b/static/public.css index beaf369..915618a 100644 --- a/static/public.css +++ b/static/public.css @@ -3312,16 +3312,6 @@ font-size: 1.05rem; } } - .xl\:sticky { - @media (width >= 80rem) { - position: sticky; - } - } - .xl\:top-6 { - @media (width >= 80rem) { - top: calc(var(--spacing) * 6); - } - } .xl\:hidden { @media (width >= 80rem) { display: none; From b46e38bde22eed98c25abc15dc106053c2b1d0d1 Mon Sep 17 00:00:00 2001 From: scisaga Date: Fri, 10 Apr 2026 02:24:33 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E5=AF=BC=E8=88=AA=E5=B9=B6=E5=90=8C=E6=AD=A5=E6=8A=80?= =?UTF-8?q?=E8=83=BD=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/qml-authoring/SKILL.md | 2 +- skills/quiz-repo-spec/references/repo-contract.md | 2 ++ static/admin.css | 4 ++-- static/admin/index.html | 7 ++++++- static/assets/css/admin/components.css | 2 +- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/skills/qml-authoring/SKILL.md b/skills/qml-authoring/SKILL.md index 0b91b36..71d23fb 100644 --- a/skills/qml-authoring/SKILL.md +++ b/skills/qml-authoring/SKILL.md @@ -15,7 +15,7 @@ description: Use this skill when authoring, reviewing, fixing, or documenting QM - 维护 traits 量表问卷的维度说明、分析建议与 Front Matter 解释口径 - 维护问卷 `intro` / `outro` 图片及其展示约定 - 排查 QML 解析错误 -- 更新 QML 规范文档或 QML 示例 +- 更新 `qml.md` 或 QML 示例 - 评审 QML 语法与 parser 行为是否一致 ## 工作流 diff --git a/skills/quiz-repo-spec/references/repo-contract.md b/skills/quiz-repo-spec/references/repo-contract.md index 7c9e11f..9515817 100644 --- a/skills/quiz-repo-spec/references/repo-contract.md +++ b/skills/quiz-repo-spec/references/repo-contract.md @@ -24,6 +24,7 @@ - 必须存在 `md-quiz-repo.yaml` - 必须存在 `README.md` +- 新增、删除或重命名 quiz 后,必须同步更新 `md-quiz-repo.yaml` 与 `README.md` - 不再支持根目录散落 `*.md` ### manifest 要求 @@ -44,6 +45,7 @@ quizzes: - `quizzes` 必须是非空列表 - 每个 `path` 只能是 `quizzes//quiz.md` - `path` 不能重复,不能越界,必须真实存在 +- 新增或删除 quiz 时,`quizzes` 列表必须同步反映实际仓库内容 - 当前仓库规范版本号与 QML 头部推荐的 `schema_version: 2` / `format: qml-v2` 保持同一代际 ## Quiz 目录规则 diff --git a/static/admin.css b/static/admin.css index cfec6dd..acc687b 100644 --- a/static/admin.css +++ b/static/admin.css @@ -3694,7 +3694,7 @@ } .admin-primary-nav__track { display: grid; - grid-template-columns: repeat(5, minmax(0, 1fr)); + grid-template-columns: repeat(var(--admin-primary-nav-columns, 5), minmax(0, 1fr)); gap: 0.45rem; border-radius: 1rem; border: 1px solid rgba(37, 99, 235, 0.14); @@ -4877,4 +4877,4 @@ --tw-translate-z: 0; } } -} \ No newline at end of file +} diff --git a/static/admin/index.html b/static/admin/index.html index 00c0d7f..49b9337 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -120,7 +120,12 @@

-