fix: increase rules list viewport height
This commit is contained in:
@@ -422,13 +422,13 @@ export default function RulesTestList() {
|
||||
/>
|
||||
</FilterPanel>
|
||||
|
||||
<Card className="ant-card">
|
||||
<Card className="ant-card rules-test-table-card">
|
||||
<Table
|
||||
className="rules-test-table rules-table"
|
||||
columns={columns}
|
||||
dataSource={rows}
|
||||
rowKey="rowId"
|
||||
scroll={{ y: 700 }}
|
||||
scroll={{ y: 'calc(100vh - 340px)' }}
|
||||
emptyText={<div className="empty-state">暂无规则。当前类型的规则列表流程已保留,可进入配置页查看空 YAML 模板。</div>}
|
||||
/>
|
||||
{totalCount > 0 && (
|
||||
|
||||
@@ -184,8 +184,8 @@
|
||||
}
|
||||
|
||||
.rules-test-page .rules-test-table td {
|
||||
padding-top: 18px;
|
||||
padding-bottom: 18px;
|
||||
padding-top: 14px;
|
||||
padding-bottom: 14px;
|
||||
padding-right: 12px;
|
||||
vertical-align: top;
|
||||
}
|
||||
@@ -216,9 +216,7 @@
|
||||
.rules-test-page .rule-name {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
min-height: 54px;
|
||||
justify-content: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.rules-test-page .rule-name strong {
|
||||
@@ -235,9 +233,11 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 6px;
|
||||
min-height: 54px;
|
||||
justify-content: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.rules-test-page .rules-test-table-card {
|
||||
min-height: calc(100vh - 250px);
|
||||
}
|
||||
|
||||
.rules-test-page .rule-check-type span:last-child {
|
||||
|
||||
Reference in New Issue
Block a user