fix: 1.5.7 protocols & TLS page legend, methods panel and mobile layout
Release / Gitea release (push) Successful in 4s
Release / Plan (reuse the published image?) (push) Successful in 5s
Release / ci (push) Successful in 1m52s
Release / Build image (amd64) (push) Successful in 22s
Release / Build image (arm64) (push) Successful in 1m10s
Release / Publish tags (push) Successful in 17s
CI / Format and vet (push) Successful in 1m14s
CI / Tests (Linux, race detector) (push) Successful in 1m6s
CI / Dependency audit (push) Successful in 38s
CI / Docker image (build and smoke test) (push) Skipped
Release / Gitea release (push) Successful in 4s
Release / Plan (reuse the published image?) (push) Successful in 5s
Release / ci (push) Successful in 1m52s
Release / Build image (amd64) (push) Successful in 22s
Release / Build image (arm64) (push) Successful in 1m10s
Release / Publish tags (push) Successful in 17s
CI / Format and vet (push) Successful in 1m14s
CI / Tests (Linux, race detector) (push) Successful in 1m6s
CI / Dependency audit (push) Successful in 38s
CI / Docker image (build and smoke test) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2a14924ed9
commit
393a31cebe
5 files changed
+30
-7
No files matched your search
@@ -4,6 +4,12 @@
|
|||||||
|
|
||||||
Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow SemVer.
|
Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow SemVer.
|
||||||
|
|
||||||
|
## [1.5.7] - 2026-11-15
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Protocols & TLS: the class legend under the stacked bars had no styles (words glued together, no color swatches, overflowing on phones); the Methods panel no longer reserves a fixed 280 px height with empty space; cipher suite names break at underscores instead of mid-word; on phones the per-class breakdown of each method moves under the method name; an invalid CSS selector disabled the page's mobile one-column rule.
|
||||||
|
|
||||||
## [1.5.6] - 2026-11-15
|
## [1.5.6] - 2026-11-15
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -4,6 +4,12 @@
|
|||||||
|
|
||||||
Formato baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.1.0/); versionamento segue SemVer.
|
Formato baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.1.0/); versionamento segue SemVer.
|
||||||
|
|
||||||
|
## [1.5.7] - 2026-11-15
|
||||||
|
|
||||||
|
### Corrigido
|
||||||
|
|
||||||
|
- Protocolos e TLS: a legenda das classes sob as barras empilhadas não tinha estilo (palavras grudadas, sem as cores e estourando no celular); o painel Métodos não reserva mais 280 px fixos com espaço vazio; os nomes das suítes de cifra quebram nos sublinhados em vez de no meio da palavra; no celular o detalhamento por classe de cada método vai para baixo do nome; um seletor CSS inválido desligava a regra de uma coluna no celular.
|
||||||
|
|
||||||
## [1.5.6] - 2026-11-15
|
## [1.5.6] - 2026-11-15
|
||||||
|
|
||||||
### Corrigido
|
### Corrigido
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ package app
|
|||||||
|
|
||||||
// Version is the release version (SemVer). Release builds may override it with
|
// Version is the release version (SemVer). Release builds may override it with
|
||||||
// -ldflags "-X .../internal/app.Version=...".
|
// -ldflags "-X .../internal/app.Version=...".
|
||||||
var Version = "1.5.6"
|
var Version = "1.5.7"
|
||||||
@@ -5,6 +5,15 @@
|
|||||||
.hl-table th { color: var(--ink-muted); font-weight: 500; position: sticky; top: 0; background: var(--surface-panel); }
|
.hl-table th { color: var(--ink-muted); font-weight: 500; position: sticky; top: 0; background: var(--surface-panel); }
|
||||||
.hl-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
.hl-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||||
.hl-page .panel { min-width: 0; }
|
.hl-page .panel { min-width: 0; }
|
||||||
@media (max-width: 900px) { .hl-page .span-6, { grid-column: 1 / -1; } }
|
@media (max-width: 900px) { .hl-page .span-4, .hl-page .span-6, .hl-page .span-8 { grid-column: 1 / -1; } }
|
||||||
.hl-helps { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: var(--s-3, 10px); font-size: .8125rem; color: var(--ink-muted); }
|
.hl-helps { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: var(--s-3, 10px); font-size: .8125rem; color: var(--ink-muted); }
|
||||||
.hl-help { display: inline-flex; align-items: center; gap: 4px; }
|
.hl-help { display: inline-flex; align-items: center; gap: 4px; }
|
||||||
|
.hl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: var(--s-3); font-size: .8125rem; color: var(--ink-muted); }
|
||||||
|
.hl-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
|
||||||
|
.hl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
|
||||||
|
.hl-table td.hl-brk { overflow-wrap: normal; min-width: 14rem; color: var(--ink-muted); }
|
||||||
|
.hl-brk-m { display: none; font-family: var(--font-sans); font-size: .75rem; color: var(--ink-muted); margin-top: 2px; overflow-wrap: normal; }
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.hl-table .hl-brk { display: none; }
|
||||||
|
.hl-brk-m { display: block; }
|
||||||
|
}
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
var pt = U.ui.panel({ title: t('hl.pr.tls'), hint: t('hl.pr.tls.hint'), variant: 'chart', loading: true, cls: 'span-6' });
|
var pt = U.ui.panel({ title: t('hl.pr.tls'), hint: t('hl.pr.tls.hint'), variant: 'chart', loading: true, cls: 'span-6' });
|
||||||
var ps = U.ui.panel({ title: t('hl.pr.scheme'), hint: t('hl.pr.scheme.hint'), loading: true, cls: 'span-4' });
|
var ps = U.ui.panel({ title: t('hl.pr.scheme'), hint: t('hl.pr.scheme.hint'), loading: true, cls: 'span-4' });
|
||||||
var pc = U.ui.panel({ title: t('hl.pr.ciphers'), hint: t('hl.pr.ciphers.hint'), variant: 'chart', loading: true, cls: 'span-8' });
|
var pc = U.ui.panel({ title: t('hl.pr.ciphers'), hint: t('hl.pr.ciphers.hint'), variant: 'chart', loading: true, cls: 'span-8' });
|
||||||
var pm = U.ui.panel({ title: t('hl.pr.methods'), hint: t('hl.pr.methods.hint'), variant: 'list', loading: true, cls: 'span-12' });
|
var pm = U.ui.panel({ title: t('hl.pr.methods'), hint: t('hl.pr.methods.hint'), loading: true, cls: 'span-12' });
|
||||||
[lead, pp, pt, ps, pc, pm].forEach(function (n) { grid.appendChild(n); });
|
[lead, pp, pt, ps, pc, pm].forEach(function (n) { grid.appendChild(n); });
|
||||||
root.appendChild(grid);
|
root.appendChild(grid);
|
||||||
|
|
||||||
@@ -103,17 +103,19 @@
|
|||||||
// http vs https
|
// http vs https
|
||||||
if (U.charts && U.charts.donut) ps.body.appendChild(U.charts.donut([{ key: 'https', label: t('hl.pr.s.https'), value: https }, { key: 'http', label: t('hl.pr.s.http'), value: plain }],
|
if (U.charts && U.charts.donut) ps.body.appendChild(U.charts.donut([{ key: 'https', label: t('hl.pr.s.https'), value: https }, { key: 'http', label: t('hl.pr.s.http'), value: plain }],
|
||||||
{ title: t('hl.pr.scheme'), colors: ['--ok', '--warn'], centerLabel: t('hl.pr.col.n') }));
|
{ title: t('hl.pr.scheme'), colors: ['--ok', '--warn'], centerLabel: t('hl.pr.col.n') }));
|
||||||
var ci = (d.ciphers || []).slice(0, 12).map(function (x) { return { key: x.name, label: x.name, value: x.n }; });
|
var ci = (d.ciphers || []).slice(0, 12).map(function (x) { return { key: x.name, label: String(x.name).replace(/_/g, '_\u200b'), value: x.n }; });
|
||||||
if (ci.length && U.charts && U.charts.bars) pc.body.appendChild(U.charts.bars(ci, { horizontal: true, title: t('hl.pr.ciphers') }));
|
if (ci.length && U.charts && U.charts.bars) pc.body.appendChild(U.charts.bars(ci, { horizontal: true, title: t('hl.pr.ciphers') }));
|
||||||
else pc.body.appendChild(U.ui.empty(t('hl.pr.empty')));
|
else pc.body.appendChild(U.ui.empty(t('hl.pr.empty')));
|
||||||
var tb = el('tbody');
|
var tb = el('tbody');
|
||||||
(d.methods || []).forEach(function (m) {
|
(d.methods || []).forEach(function (m) {
|
||||||
var errs = sum(m.classes) - (m.classes.ok || 0);
|
var errs = sum(m.classes) - (m.classes.ok || 0);
|
||||||
tb.appendChild(el('tr', null, el('td', { class: 'mono' }, m.method, m.odd ? U.ui.badge(t('hl.pr.odd'), 'warn') : null), el('td', { class: 'num' }, U.fmt.num(m.n)), el('td', { class: 'num' }, U.fmt.num(errs)),
|
var brk = CLS.filter(function (k) { return m.classes[k]; }).map(function (k) { return t('hl.pr.c.' + k) + ' ' + U.fmt.num(m.classes[k]); }).join(' · ');
|
||||||
el('td', null, CLS.filter(function (k) { return m.classes[k] || (k === 'client' && false); }).map(function (k) { return t('hl.pr.c.' + k) + ' ' + U.fmt.num(m.classes[k]); }).join(' · '))));
|
// on phones the breakdown moves under the method (the 4th column is hidden)
|
||||||
|
tb.appendChild(el('tr', null, el('td', { class: 'mono' }, m.method, m.odd ? U.ui.badge(t('hl.pr.odd'), 'warn') : null, el('div', { class: 'hl-brk-m' }, brk)), el('td', { class: 'num' }, U.fmt.num(m.n)), el('td', { class: 'num' }, U.fmt.num(errs)),
|
||||||
|
el('td', { class: 'hl-brk' }, brk)));
|
||||||
});
|
});
|
||||||
pm.body.appendChild(el('div', { class: 'hl-scroll' }, el('table', { class: 'hl-table' },
|
pm.body.appendChild(el('div', { class: 'hl-scroll' }, el('table', { class: 'hl-table' },
|
||||||
el('thead', null, el('tr', null, el('th', null, t('hl.pr.col.method')), el('th', { class: 'num' }, t('hl.pr.col.n')), el('th', { class: 'num' }, t('hl.pr.col.errs')), el('th', null, ''))), tb)));
|
el('thead', null, el('tr', null, el('th', null, t('hl.pr.col.method')), el('th', { class: 'num' }, t('hl.pr.col.n')), el('th', { class: 'num' }, t('hl.pr.col.errs')), el('th', { class: 'hl-brk' }, ''))), tb)));
|
||||||
}
|
}
|
||||||
function load() {
|
function load() {
|
||||||
var my = ++seq;
|
var my = ++seq;
|
||||||
|
|||||||
Reference in new issue
Block a user