diff --git a/pkg/webui/server.go b/pkg/webui/server.go index 1d4909a5..b5e743fb 100644 --- a/pkg/webui/server.go +++ b/pkg/webui/server.go @@ -1,6 +1,7 @@ package webui import ( + "bufio" "crypto/rand" "encoding/csv" "encoding/hex" @@ -238,6 +239,9 @@ var pageTemplate = strings.Join([]string{ " table th:nth-child(6), table td:nth-child(6) { width: 14%; }", " .details-list li, .details-list a { overflow-wrap: anywhere; word-break: break-word; }", " .findings-table-card { overflow: hidden; }", + " .pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }", + " .pagination-actions { display: flex; gap: .5rem; }", + " .control-btn:disabled { opacity: .5; cursor: default; }", " #toast { position: fixed; right: 1rem; bottom: 1rem; background: rgba(42,74,37,.96); color: #fff; padding: .7rem .9rem; border-radius: 999px; font-size: .84rem; box-shadow: 0 8px 20px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; z-index: 2000; }", " #toast.visible { opacity: 1; transform: translateY(0); }", " @media (max-width: 720px) { main { padding: 0 .5rem; } .top-nav-inner { padding: .6rem .75rem; } h1 { font-size: 1.6rem; } }", @@ -332,6 +336,10 @@ var pageTemplate = strings.Join([]string{ " ", " ", "
| Severity | Rule | Secret | Type | Details | Time |
|---|