From f376fd562269c405337f30ab0c98e81238247eb9 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 4 Apr 2026 11:41:00 +0200 Subject: [PATCH] feat: show frame image preview on hover via thumbnail tooltip Replaces click-to-dialog with a small thumbnail that reveals the full image on hover. Co-Authored-By: Claude Sonnet 4.6 --- tab_batch_ng.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tab_batch_ng.py b/tab_batch_ng.py index 97c3dbd..75a9f5e 100644 --- a/tab_batch_ng.py +++ b/tab_batch_ng.py @@ -571,9 +571,14 @@ def _render_sequence_card(i, seq, batch_list, data, file_path, state, img_path = Path(seq.get(img_key, '')) if seq.get(img_key) else None if (img_path and img_path.exists() and img_path.suffix.lower() in IMAGE_EXTENSIONS): - with ui.dialog() as dlg, ui.card(): - ui.image(str(img_path)).classes('w-full') - ui.button(icon='visibility', on_click=dlg.open).props('flat dense') + thumb = ui.image(str(img_path)).style( + 'width:36px; height:36px; object-fit:cover;' + ' border-radius:4px; cursor:default; flex-shrink:0') + with thumb: + with ui.tooltip().props('max-width=none').style( + 'background:transparent; padding:4px; box-shadow:none'): + ui.image(str(img_path)).style( + 'max-width:400px; max-height:400px; border-radius:6px') str_inp = dict_number('Strength', seq, str_key, default=1.0, step=0.05, format='%.2f').style( 'width:80px').props('outlined dense')