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:
@@ -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),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user