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.
dev-QQq
chenyuan 1 month ago
parent 90df198bb8
commit 70c4042461

@ -272,8 +272,8 @@
<thead>
<tr>
<th>序号</th>
<th v-if="section.hasModule">模块</th>
<th>标题</th>
<th v-if="section.hasModule" class="mrd-module-head">模块</th>
<th class="mrd-row-title-head">标题</th>
<th>内容</th>
</tr>
</thead>
@ -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;

Loading…
Cancel
Save