diff --git a/javascript/sdnext.css b/javascript/sdnext.css index 76e60d1d2..49f1c2266 100644 --- a/javascript/sdnext.css +++ b/javascript/sdnext.css @@ -302,8 +302,8 @@ div:has(>#tab-gallery-folders) { flex-grow: 0 !important; background-color: var( #html_log_gallery { font-size: 0.95em; } #gallery_gallery { height: 60vh; } #gallery_gallery .thumbnails { display: none; } -#gallery_gallery .preview { display: grid; background: none; } -#gallery_gallery img { object-fit: contain; } +#gallery_gallery .preview { background: none; } +#gallery_gallery img { object-fit: contain; height: 100% !important; } .gallery-sort { background: var(--input-background-fill) !important; margin: 0 !important; padding: 6px !important; } .gallery-sort:hover { background: var(--button-primary-background-fill-hover) !important; } diff --git a/modules/ui_gallery.py b/modules/ui_gallery.py index 6ab9b0630..d35010270 100644 --- a/modules/ui_gallery.py +++ b/modules/ui_gallery.py @@ -2,13 +2,14 @@ import os from datetime import datetime import gradio as gr from PIL import Image -from modules import ui_symbols, ui_common, images, ui_control_helpers +from modules import shared, ui_symbols, ui_common, images, ui_control_helpers from modules.ui_components import ToolButton def read_media(fn): if not os.path.isfile(fn): - return [[], None, '', f'Image not found: {fn}'] + shared.log.error(f'Gallery not found: file="{fn}"') + return [[], None, '', '', f'Media not found: {fn}'] stat = os.stat(fn) if fn.lower().endswith('.mp4'): frames, fps, duration, w, h, codec, _frame = ui_control_helpers.get_video_params(fn) diff --git a/wiki b/wiki index 7285509c6..847f22d4f 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 7285509c610fe43e63c9541c209d7fe6cef614c2 +Subproject commit 847f22d4fa9a02cc6650c55e34469593f2d877dd