From 238b207ed6c34c04eccca7ab58be337fe6434a5c Mon Sep 17 00:00:00 2001 From: Ophir LOJKINE Date: Sat, 5 Dec 2026 15:59:19 +0100 Subject: [PATCH 1/2] Fix truncated SQL in component documentation --- CHANGELOG.md | 2 ++ .../official-site/assets/highlightjs-and-tabler-theme.css | 4 ++++ examples/official-site/component.sql | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a31314af0..1c0e69ddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## unreleased +- SQL blocks in the component documentation expand to show the full example. + - Now a tab with a `color` is underlined only when it is active. ([#791](https://github.com/sqlpage/SQLPage/issues/791)) - Striped table rows are visible in dark mode again. Tabler was updated to [v1.7.3](https://github.com/tabler/tabler/releases/tag/%40tabler%2Fcore%401.7.3) to fix this. ([#957](https://github.com/sqlpage/SQLPage/issues/957)) diff --git a/examples/official-site/assets/highlightjs-and-tabler-theme.css b/examples/official-site/assets/highlightjs-and-tabler-theme.css index db0fdd000..ec669ec0d 100644 --- a/examples/official-site/assets/highlightjs-and-tabler-theme.css +++ b/examples/official-site/assets/highlightjs-and-tabler-theme.css @@ -155,6 +155,10 @@ pre:has(code) { border-radius: 0.5rem; } +.component-example-source pre:has(code) { + max-height: none; +} + @media print { pre:has(code) { /* biome-ignore lint/complexity/noImportantStyles: .markdown pre is more specific and caps the height at 20rem */ diff --git a/examples/official-site/component.sql b/examples/official-site/component.sql index 53453fe32..48b3b5c4c 100644 --- a/examples/official-site/component.sql +++ b/examples/official-site/component.sql @@ -65,7 +65,7 @@ ORDER BY optional, name; select 'dynamic' as component, '[ - {"component": "code"}, + {"component": "code", "class": "component-example-source"}, { "title": "Example ' || (row_number() OVER ()) || '", "description_md": ' || json_quote(description) || ', From 03387eeb99664a002af9312e6c00af1012360073 Mon Sep 17 00:00:00 2001 From: Ophir LOJKINE Date: Sat, 5 Dec 2026 16:24:04 +0100 Subject: [PATCH 2/2] Update CHANGELOG to remove SQL blocks note Removed a note about SQL blocks in documentation examples. --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d223d3c7b..3e68ac773 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,6 @@ ## unreleased -- SQL blocks in side-by-side documentation examples use the full height of the result panel and expand for longer examples. - SQLPage reports syntax errors before running any statements in the affected SQL file. ([#1706](https://github.com/sqlpage/SQLPage/discussions/1706)) - OIDC logs focus on configuration and failures. SQLPage omits tokens, cookie values, user claims, and callback and logout query strings from OIDC diagnostics. - Standard alert descriptions have higher text contrast.