diff --git a/CHANGELOG.md b/CHANGELOG.md index e89a6baab..2df8f1e72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## unreleased +- Set `wrap` on a `big_number` component to show long titles and descriptions across multiple lines. + ## v0.48.0 (2026-11-12) - Updated Rust and browser dependencies, including ApexCharts 8.8.1, Tabler 1.7.4, Tabler icons 3.51, and Tom Select 2.7. Chart series names and labels now display HTML as text, fixing upstream script injection in legends and tooltips. diff --git a/examples/official-site/sqlpage/migrations/49_big_number.sql b/examples/official-site/sqlpage/migrations/49_big_number.sql index 42e93e968..acdb2858d 100644 --- a/examples/official-site/sqlpage/migrations/49_big_number.sql +++ b/examples/official-site/sqlpage/migrations/49_big_number.sql @@ -8,6 +8,7 @@ INSERT INTO component(name, icon, description, introduced_in_version) VALUES INSERT INTO parameter(component, name, description, type, top_level, optional) SELECT 'big_number', * FROM (VALUES -- Top-level parameters (for the whole big_number list) ('columns', 'The number of columns to display the big numbers in (default is one column per item).', 'INTEGER', TRUE, TRUE), + ('wrap', 'Wrap long titles and descriptions onto multiple lines. By default, they are truncated with an ellipsis.', 'BOOLEAN', TRUE, TRUE), -- id and class, at both levels, come from 99_shared_id_class_attributes.sql -- Item-level parameters (for each big number) ('title', 'The title or label for the big number.', 'TEXT', FALSE, TRUE), diff --git a/sqlpage/templates/big_number.handlebars b/sqlpage/templates/big_number.handlebars index 385b2ccfa..8f469376f 100644 --- a/sqlpage/templates/big_number.handlebars +++ b/sqlpage/templates/big_number.handlebars @@ -8,12 +8,12 @@ {{#unless ../columns}}style="min-width: 9rem;"{{/unless}} {{~#if id}} id="{{id}}"{{/if~}} > -