From 3065dd7e71990c3b80e20e07598b223524e7e06d Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 4 Apr 2026 11:59:44 +0200 Subject: [PATCH] fix: use raw tags to bypass q-img dialog rendering bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NiceGUI's ui.image (Quasar q-img) fails to display inside ui.dialog regardless of URL type — shows alt text instead of image. Switched both thumbnail and dialog content to plain HTML tags which the browser renders directly without component interference. Co-Authored-By: Claude Sonnet 4.6 --- tab_batch_ng.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tab_batch_ng.py b/tab_batch_ng.py index 40fc8dd..69ab195 100644 --- a/tab_batch_ng.py +++ b/tab_batch_ng.py @@ -573,11 +573,13 @@ def _render_sequence_card(i, seq, batch_list, data, file_path, state, if (img_path and img_path.exists() and img_path.suffix.lower() in IMAGE_EXTENSIONS): img_url = f'/api/image-preview?path={quote(str(img_path))}' - with ui.dialog() as img_dlg, ui.card().style('max-width:90vw'): - ui.image(img_url).style('max-width:80vw; max-height:80vh') - ui.image(img_url).style( - 'width:36px; height:36px; object-fit:cover;' - ' border-radius:4px; cursor:pointer; flex-shrink:0' + with ui.dialog() as img_dlg, ui.card().style('max-width:90vw; padding:0'): + ui.html(f'') + ui.html( + f'' ).on('click', img_dlg.open) str_inp = dict_number('Strength', seq, str_key, default=1.0, step=0.05, format='%.2f').style(