From 2ae4cd3ea5ace970f160f238902be9363e561295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=BA=86=E6=B3=B0?= <12369755+htcloud1@user.noreply.gitee.com> Date: Sat, 22 Aug 2026 16:20:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(detail):=20=E5=8F=82=E4=BC=9A=E4=BA=BA?= =?UTF-8?q?=E8=A1=A8=E6=92=91=E7=88=86=20grid=20=E4=BF=AE=E5=A4=8D=20(left?= =?UTF-8?q?-col=20min-width:0=20+=20wrap=20div=20overflow-x:auto)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ry-vue3/src/views/manager/MeetingDetail.vue | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/ry-vue3/src/views/manager/MeetingDetail.vue b/ry-vue3/src/views/manager/MeetingDetail.vue index 21fd109..ff7b5f9 100644 --- a/ry-vue3/src/views/manager/MeetingDetail.vue +++ b/ry-vue3/src/views/manager/MeetingDetail.vue @@ -59,10 +59,13 @@ 按手机号定位; 手机号未注册将自动建 sys_user (用户名=密码=手机号) - +
+ @@ -98,6 +101,7 @@ 暂无参会人, 点击右上"新增参会人"按手机号添加 +
@@ -952,7 +956,12 @@ onMounted(load) .tag-list { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .cols-row { display: grid; grid-template-columns: 7fr 3fr; gap: 16px; align-items: flex-start; } -.left-col { display: flex; flex-direction: column; gap: 16px; } +/* + * min-width:0 是 CSS Grid 关键: 默认 grid item 的 min-width 是 auto (= 内容最小宽度), + * 参会人表 13 列 min-width 累加 ~1680px 会把 left-col 撑到 1730px, 把 audit-column 挤到 93px. + * 加 min-width:0 让 left-col 可以缩小到 7fr 的网格槽宽度. + */ +.left-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; } .material-tabs :deep(.el-tabs__header) { margin-bottom: 12px; } .material-tabs :deep(.el-tabs__item) { font-size: 14px; } @@ -995,5 +1004,6 @@ onMounted(load) .attendee-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; } .toolbar-hint { font-size: 12px; color: #909399; line-height: 1.5; } .form-hint { font-size: 12px; color: #909399; margin-top: -8px; margin-bottom: 8px; line-height: 1.5; } -/* (参会人表固定宽度已写在 el-table style 上, 不再需要 wrap div) */ +/* 表格外层横向滚动容器: 内容总宽 ~1680px 超出 left-col 宽度时, 容器内出现横向滚动条, 不撑爆外层 grid */ +.attendee-table-wrap { overflow-x: auto; max-width: 100%; min-width: 0; } \ No newline at end of file