fix(legal): wrap the privacy table's first column, top-align cells
CI / changes (pull_request) Successful in 2s
CI / unit (pull_request) Successful in 11s
CI / integration (pull_request) Successful in 21s
CI / ui (pull_request) Successful in 1m13s
CI / conformance (pull_request) Successful in 11s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 1m54s

The shared legal-page template inherited the offer's shrink-to-fit product-name column (width:1% + white-space:nowrap), which stopped the privacy data table's long prose first column from wrapping and blew the table out horizontally. Scope that rule to the offer (body.offer) and top-align all legal-table cells for the multi-line privacy rows.
This commit is contained in:
Ilia Denisov
2026-07-13 13:00:40 +02:00
parent 1d77ee83b3
commit 7df078f5ed
2 changed files with 20 additions and 6 deletions
+10
View File
@@ -39,4 +39,14 @@ describe('renderLegalHtml', () => {
expect(html).toContain('<title>Публичная оферта — Эрудит</title>');
expect(html).toContain('href="https://erudit-game.ru/offer/"');
});
it('scopes the shrink-to-fit first-column table rule to the offer only', () => {
// The offer opts into the nowrap product-name column via body.offer; other legal pages (the
// privacy data table) must NOT get it, or their prose first column cannot wrap.
expect(renderOfferHtml('# x')).toContain('<body class="offer">');
const generic = renderLegalHtml('# x', { title: 't', canonical: 'c' });
expect(generic).toContain('<body>');
expect(generic).not.toContain('<body class=');
expect(generic).toContain('.offer td:first-child');
});
});