fix: sd image preview modal size

This commit is contained in:
licoy
2024-07-12 15:20:09 +08:00
parent d61cb98ac7
commit dd1030139b
2 changed files with 25 additions and 6 deletions

View File

@@ -167,6 +167,12 @@ export function Sd() {
showImageModal(
getBase64ImgUrl(item.img_data, "image/png"),
true,
isMobileScreen
? { width: "100%", height: "fit-content" }
: { maxWidth: "100%", maxHeight: "100%" },
isMobileScreen
? { width: "100%", height: "fit-content" }
: { width: "100%", height: "100%" },
);
}}
/>