diff --git a/resources/views/business/pages/negative-alerts/supplier-payable-forecast.blade.php b/resources/views/business/pages/negative-alerts/supplier-payable-forecast.blade.php index e7525f63..a8aa5d46 100644 --- a/resources/views/business/pages/negative-alerts/supplier-payable-forecast.blade.php +++ b/resources/views/business/pages/negative-alerts/supplier-payable-forecast.blade.php @@ -320,7 +320,9 @@ .supplier-payable-forecast .npf-table-shell { max-width: 100%; + max-height: min(62vh, 48rem); overflow: auto; + overscroll-behavior: contain; border: 1px solid var(--npf-border); border-radius: 9px; scrollbar-gutter: stable; @@ -378,6 +380,7 @@ .supplier-payable-forecast .npf-data-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } .supplier-payable-forecast .npf-filter { grid-template-columns: minmax(0, 1fr); } .supplier-payable-forecast .npf-filter-actions { grid-column: 1; justify-content: flex-start; } + .supplier-payable-forecast .npf-table-shell { max-height: 58vh; } } @media (prefers-reduced-motion: reduce) { diff --git a/tests/Feature/Business/NegativeAlertPagesTest.php b/tests/Feature/Business/NegativeAlertPagesTest.php index a88e0c55..5da7c89a 100644 --- a/tests/Feature/Business/NegativeAlertPagesTest.php +++ b/tests/Feature/Business/NegativeAlertPagesTest.php @@ -435,6 +435,10 @@ class NegativeAlertPagesTest extends FeatureTestCase $this->assertStringContainsString(route('business.supplier-payable-forecast.goods.export'), $html); $this->assertStringContainsString('导出当前筛选', $html); $this->assertStringContainsString('CaiWuDatePicker.setup(filterForm)', $html); + $this->assertStringContainsString('max-height: min(62vh, 48rem)', $html); + $this->assertStringContainsString('overscroll-behavior: contain', $html); + $this->assertStringContainsString('.supplier-payable-forecast .npf-table th', $html); + $this->assertStringContainsString('position: sticky', $html); $this->assertStringNotContainsString('name="goods_date_from" min=', $html); $this->assertStringNotContainsString('name="goods_date_to" min=', $html);