From 70c4042461b720648bcfc40fbe425b17645cd768 Mon Sep 17 00:00:00 2001 From: chenyuan Date: Tue, 27 Oct 2026 23:15:06 +0800 Subject: [PATCH] fix(differentiation): narrow MRD title column so the content column gets the width table-layout:fixed split the unspecified 75% evenly between the title and content columns; titles are 2-4 characters so half the title cell read as an empty phantom column. Give title a fixed 14% (class-based, safe for sections without the module column) and let the content column take the remaining width. --- src/views/product/differentiation.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/product/differentiation.vue b/src/views/product/differentiation.vue index 1dacccb..5373ceb 100644 --- a/src/views/product/differentiation.vue +++ b/src/views/product/differentiation.vue @@ -272,8 +272,8 @@ 序号 - 模块 - 标题 + 模块 + 标题 内容 @@ -1140,12 +1140,18 @@ async function handleValueCanvasUpload(event) { text-align: center; } -.mrd-table th:nth-child(2), -.mrd-table td:nth-child(2) { +.mrd-table th.mrd-module-head, +.mrd-table td.mrd-module { width: 17%; text-align: center; } +/* 标题列内容只有几个字,收窄让位给内容填写列(内容列不设宽度,吃掉剩余空间) */ +.mrd-table th.mrd-row-title-head, +.mrd-table td.mrd-row-title { + width: 14%; +} + .mrd-row-title { color: var(--student-text); font-weight: 700;