Fix Bug #571: 根因+修复方案摘要

This commit is contained in:
2026-05-22 12:08:15 +08:00
parent 5f18e8bd73
commit 44f0c2571e

View File

@@ -267,8 +267,6 @@ getPharmacyCabinetLists();
.report-container { .report-container {
width: 100%; width: 100%;
max-width: 1200px; max-width: 1200px;
min-width: 900px;
margin: 0 auto;
box-sizing: border-box; box-sizing: border-box;
padding: 24px 32px; padding: 24px 32px;
background: #fff; background: #fff;
@@ -295,38 +293,46 @@ getPharmacyCabinetLists();
.report-row { .report-row {
display: grid; display: grid;
margin: 12px 0; margin: 12px 0;
gap: 12px 24px; gap: 8px 16px;
align-items: center; align-items: center;
} }
.cols-4 { .cols-4 {
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
} }
.span-2 { .span-2 {
grid-column: span 2; grid-column: span 2;
} }
.report-item { .report-item {
display: grid; display: flex;
grid-template-columns: 120px 1fr;
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
min-width: 0; min-width: 0;
} }
.label { .label {
min-width: 100px;
flex-shrink: 0;
color: #606266; color: #606266;
white-space: nowrap; white-space: nowrap;
text-align: right; text-align: right;
padding-right: 4px;
} }
.value { .value {
color: #303133; color: #303133;
font-weight: 500; font-weight: 500;
white-space: nowrap; white-space: nowrap;
flex: 1; flex: 1;
min-width: 0;} }
.divider { .divider {
height: 1px; height: 1px;
background-color: #dcdfe6; background-color: #dcdfe6;
margin: 16px 0; margin: 12px 0;
}
@media screen and (max-width: 1200px) {
.cols-4 {
grid-template-columns: repeat(2, 1fr);
}
.span-2 {
grid-column: span 2;
}
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
.cols-4 { .cols-4 {
@@ -335,8 +341,8 @@ getPharmacyCabinetLists();
.span-2 { .span-2 {
grid-column: span 1; grid-column: span 1;
} }
.report-item { .label {
grid-template-columns: 100px 1fr; min-width: 80px;
} }
} }
</style> </style>