From 804d2c6e8d47554c47231ea3a6fcccc53030acb6 Mon Sep 17 00:00:00 2001 From: Lucas Rayan Date: Sun, 15 Nov 2026 09:57:10 -0300 Subject: [PATCH] fix: 1.5.3 incidents copy button and list column widths Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 6 ++++++ CHANGELOG.pt-BR.md | 6 ++++++ internal/app/version.go | 2 +- internal/server/web/incidents.css | 4 +++- internal/server/web/incidents.js | 2 +- 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b62e2f..b562476 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow SemVer. +## [1.5.3] - 2026-11-15 + +### Fixed + +- Incidents: the Copy button of the fingerprint no longer wraps letter by letter; the list shows one tag per row and a wider host/destination column, so titles and IPs stop being cut. + ## [1.5.2] - 2026-11-15 ### Changed diff --git a/CHANGELOG.pt-BR.md b/CHANGELOG.pt-BR.md index ee3244e..d5003bb 100644 --- a/CHANGELOG.pt-BR.md +++ b/CHANGELOG.pt-BR.md @@ -4,6 +4,12 @@ Formato baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.1.0/); versionamento segue SemVer. +## [1.5.3] - 2026-11-15 + +### Corrigido + +- Incidentes: o botão Copiar da impressão digital não quebra mais letra por letra; a lista mostra uma etiqueta por linha e coluna de servidor/destino mais larga, então títulos e IPs deixam de ser cortados. + ## [1.5.2] - 2026-11-15 ### Alterado diff --git a/internal/app/version.go b/internal/app/version.go index 0ed5fc5..0dfb93e 100644 --- a/internal/app/version.go +++ b/internal/app/version.go @@ -2,4 +2,4 @@ package app // Version is the release version (SemVer). Release builds may override it with // -ldflags "-X .../internal/app.Version=...". -var Version = "1.5.2" +var Version = "1.5.3" diff --git a/internal/server/web/incidents.css b/internal/server/web/incidents.css index b4b7fdc..be81a48 100644 --- a/internal/server/web/incidents.css +++ b/internal/server/web/incidents.css @@ -47,7 +47,7 @@ .inc-table { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-panel); } .inc-thead, .inc-row { - display: grid; grid-template-columns: 10px 72px minmax(0, 1fr) 132px 110px 140px 76px; gap: var(--s-3); align-items: center; padding: 8px var(--s-3); + display: grid; grid-template-columns: 10px 64px minmax(0, 1fr) 124px 90px 200px 76px; gap: var(--s-3); align-items: center; padding: 8px var(--s-3); } .inc-thead { border-radius: var(--radius-sm) var(--radius-sm) 0 0; position: sticky; top: var(--topbar-h, 56px); z-index: 2; background: var(--surface-raised); border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .04em; } .inc-thead .r { text-align: right; } @@ -169,3 +169,5 @@ .inc-st { min-width: 0; } .inc-st .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; } .inc-row:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm); } +.inc-keyrow > :not(.inc-key) { flex: none; white-space: nowrap; } +.inc-dl dd { min-width: 0; } diff --git a/internal/server/web/incidents.js b/internal/server/web/incidents.js index 8121f05..044d837 100644 --- a/internal/server/web/incidents.js +++ b/internal/server/web/incidents.js @@ -299,7 +299,7 @@ var where = [it.host ? String(it.host) : '', it.dst ? it.dst + (it.dport ? ':' + it.dport : '') : ''].filter(Boolean).join(' · '); var full = [(it.workload || ''), it.dst ? '→ ' + it.dst + (it.dport ? ':' + it.dport : '') : ''].filter(Boolean).join(' '); var titleLine = el('span', { class: 'inc-main' }, el('strong', { class: 'inc-title', title: String(it.title || it.id) }, String(it.title || it.id)), - (it.tags && it.tags.length) ? el('span', { class: 'inc-rtags' }, tagChips(it.tags.slice(0, 3))) : null); + (it.tags && it.tags.length) ? el('span', { class: 'inc-rtags' }, tagChips(it.tags.slice(0, 1))) : null); return el('a', { class: 'inc-row', href: U.href('incidents', [String(it.id)]), title: full }, dot(it.severity), el('span', { class: 'inc-id mono' }, String(it.id)),