Fix Bug #568: 修复门诊日结页面排版混乱 - 使用固定4列网格替代auto-fit自适应

根因:grid-template-columns使用auto-fit+minmax导致列数不确定,
与span-2项组合时布局错乱。改用repeat(4,1fr)固定4列网格,
配合响应式断点处理不同屏幕尺寸。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-22 12:02:11 +08:00
parent 613e54d2de
commit 877ed62042

View File

@@ -294,11 +294,11 @@ getPharmacyCabinetLists();
.report-row { .report-row {
display: grid; display: grid;
margin: 12px 0; margin: 12px 0;
gap: 10px 16px; gap: 12px 24px;
align-items: baseline; align-items: center;
} }
.cols-4 { .cols-4 {
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-template-columns: repeat(4, 1fr);
} }
.span-2 { .span-2 {
grid-column: span 2; grid-column: span 2;
@@ -307,11 +307,10 @@ getPharmacyCabinetLists();
display: flex; display: flex;
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
min-width: 0; overflow: hidden;
} }
.label { .label {
display: inline-block; min-width: 100px;
width: 140px;
flex-shrink: 0; flex-shrink: 0;
color: #606266; color: #606266;
white-space: nowrap; white-space: nowrap;
@@ -344,7 +343,7 @@ getPharmacyCabinetLists();
grid-column: span 1; grid-column: span 1;
} }
.label { .label {
width: 100px; min-width: 80px;
} }
} }
</style> </style>