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