Commit c8e3a476 authored by IanShaw027's avatar IanShaw027
Browse files

feat(ops): 限制告警规则最多显示6个,超出可滚动

parent 808cee96
...@@ -429,10 +429,10 @@ function cancelDelete() { ...@@ -429,10 +429,10 @@ function cancelDelete() {
{{ t('admin.ops.alertRules.empty') }} {{ t('admin.ops.alertRules.empty') }}
</div> </div>
<div v-else class="overflow-hidden rounded-xl border border-gray-200 dark:border-dark-700"> <div v-else class="max-h-[520px] overflow-hidden rounded-xl border border-gray-200 dark:border-dark-700">
<div class="overflow-x-auto"> <div class="max-h-[520px] overflow-y-auto">
<table class="min-w-full divide-y divide-gray-200 dark:divide-dark-700"> <table class="min-w-full divide-y divide-gray-200 dark:divide-dark-700">
<thead class="bg-gray-50 dark:bg-dark-900"> <thead class="sticky top-0 z-10 bg-gray-50 dark:bg-dark-900">
<tr> <tr>
<th class="px-4 py-3 text-left text-[11px] font-bold uppercase tracking-wider text-gray-500 dark:text-gray-400"> <th class="px-4 py-3 text-left text-[11px] font-bold uppercase tracking-wider text-gray-500 dark:text-gray-400">
{{ t('admin.ops.alertRules.table.name') }} {{ t('admin.ops.alertRules.table.name') }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment