Fix Bug #568: 修复门诊日结页面排版混乱 - 增强网格对齐和标签宽度

根因:原始布局使用混合的cols-3/cols-4网格类,缺少统一的对齐方式,
标签宽度不足导致较长标签(如"实际现金收入:")显示空间不够。

修复:
1. 统一使用CSS Grid 4列布局,配合span-2处理跨列项
2. 添加align-items:baseline确保网格项文本基线对齐
3. 将.label最小宽度从120px增加到140px适配长标签
4. 添加flex:1让.value占据剩余空间
5. 添加响应式断点支持移动端/平板显示
6. 移除文本溢出截断,确保内容完整显示

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-22 11:51:45 +08:00
parent 3913f70351
commit 6d6a17615c

View File

@@ -294,6 +294,7 @@ getPharmacyCabinetLists();
display: grid;
margin: 12px 0;
gap: 8px 16px;
align-items: baseline;
}
.cols-4 {
grid-template-columns: repeat(4, 1fr);
@@ -309,7 +310,7 @@ getPharmacyCabinetLists();
}
.label {
display: inline-block;
min-width: 120px;
min-width: 140px;
flex-shrink: 0;
color: #606266;
white-space: nowrap;
@@ -319,6 +320,7 @@ getPharmacyCabinetLists();
color: #303133;
font-weight: 500;
white-space: nowrap;
flex: 1;
}
.divider {
height: 1px;