From 676ec6dd2b7b376e00dcda48db77609eaaa9b38a Mon Sep 17 00:00:00 2001 From: giles Date: Sun, 12 Apr 2026 15:42:42 +0000 Subject: [PATCH] Fix Pretext island: inline layout functions, div placeholder for hydration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move all layout functions inside defisland body (browser can't access top-level defines from component defs bundle) - Use div placeholder with data-sx-island attr (matches island root tag) - Rename pretext-island.sx → pretext-client.sx for alphabetical load order Co-Authored-By: Claude Opus 4.6 (1M context) --- sx/sx/pretext-demo.sx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sx/sx/pretext-demo.sx b/sx/sx/pretext-demo.sx index 126d5c44..d9bb979f 100644 --- a/sx/sx/pretext-demo.sx +++ b/sx/sx/pretext-demo.sx @@ -302,4 +302,4 @@ (code "canvas.measureText") " gives pixel-perfect metrics — the browser that measures is the browser that renders. " "Drag the sliders to re-layout in real time.") - (span :data-sx-island "pretext-demo/live" ""))))))) \ No newline at end of file + (div :data-sx-island "pretext-demo/live" ""))))))) \ No newline at end of file