From 6134590bd8d4c6a6e81ed323d4c7a1f78df18f08 Mon Sep 17 00:00:00 2001 From: Lucio Lelii Date: Fri, 25 Sep 2026 14:29:31 +0200 Subject: [PATCH] Keep the JSON full view still while its tree is opened and closed Sized to its content and centred on the page, the modal grew and shrank with every node opened or closed, its top edge jumping each time. Showing a JSON tree it now has a fixed height, and only its content scrolls. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../task-execution-viewer/task-execution-viewer.css | 8 ++++++++ .../task-execution-viewer/task-execution-viewer.html | 6 ++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/app/shared/task-execution-viewer/task-execution-viewer.css b/src/app/shared/task-execution-viewer/task-execution-viewer.css index 4965fef..df24a5d 100644 --- a/src/app/shared/task-execution-viewer/task-execution-viewer.css +++ b/src/app/shared/task-execution-viewer/task-execution-viewer.css @@ -968,3 +968,11 @@ background: #f8fafc; padding: 6px 8px; } + +/* + * A tree grows and shrinks as its nodes are opened and closed. Sized to its content, the modal - + * centred on the page - would jump with every click; at a fixed height only its content scrolls. + */ +.execution-json-modal { + height: 90vh; +} diff --git a/src/app/shared/task-execution-viewer/task-execution-viewer.html b/src/app/shared/task-execution-viewer/task-execution-viewer.html index b816c8f..c1bf5b1 100644 --- a/src/app/shared/task-execution-viewer/task-execution-viewer.html +++ b/src/app/shared/task-execution-viewer/task-execution-viewer.html @@ -653,7 +653,8 @@ @if (outputPreviewModal(); as outputModal) {
-
+

{{ outputPreviewTitle(outputModal) }}

@@ -674,7 +675,8 @@ @if (intermediateInputPreviewModal(); as inputModal) {
-
+

{{ intermediateInputPreviewTitle(inputModal) }}