feat(app): the artifact viewer page stays still; previews fill and zoom or scroll inside their frame; facts behind a Details button

This commit is contained in:
2026-10-23 23:00:56 +01:00
parent 7cbfbbbb61
commit ec3f633d2b
5 changed files with 198 additions and 44 deletions
@@ -13,8 +13,8 @@ typedef ArtifactHtmlBuilder =
/// empty `sandbox` blocks scripts, forms, popups and navigation; on Android and
/// iOS in a web view with JavaScript disabled and navigation refused. The
/// document never runs code with the app's origin or credentials.
Widget defaultArtifactHtml(BuildContext context, String html) => SizedBox(
key: const Key('artifact-html-preview'),
height: MediaQuery.sizeOf(context).height * 0.7,
child: impl.InertHtmlView(html: html),
);
Widget defaultArtifactHtml(BuildContext context, String html) =>
SizedBox.expand(
key: const Key('artifact-html-preview'),
child: impl.InertHtmlView(html: html),
);