release: v0.3.1 — Builder post lightbox fix

This commit is contained in:
greenflame089
2025-08-30 11:34:02 -04:00
parent 738341020b
commit 11bf955ebd
5 changed files with 534 additions and 447 deletions

View File

@@ -0,0 +1,15 @@
QBlog v0.3.1 — Image Preview Fix
Summary
- Builder posts: Clicking an image now opens the fullwindow lightbox, matching minimal posts.
- UX: Press Escape or click the dark backdrop to close the preview.
Technical Notes
- Added robust click handling for images inside builder/grid layouts and hardened modal open/close to prevent accidental immediate dismissal.
- No breaking changes; no API changes.
Upgrade Notes
- No action required. Existing posts automatically benefit from the fix.

View File

@@ -0,0 +1,2 @@
QBlog v0.3.1: Image previews now work for builder posts — click any post image to view fullscreen.
qortal://app/qblog

View File

@@ -1,7 +1,7 @@
{
"name": "q-blog",
"private": true,
"version": "0.3.0",
"version": "0.3.1",
"type": "module",
"scripts": {
"dev": "vite",

View File

@@ -12,7 +12,10 @@ const ImageLightbox: React.FC<ImageLightboxProps> = ({ src, alt, open, onClose }
return (
<Modal
open={open}
onClose={onClose}
// Ignore backdrop clicks from MUI to avoid immediate close when opening
onClose={(event, reason) => {
if (reason === 'escapeKeyDown') onClose();
}}
aria-labelledby="image-lightbox-title"
aria-describedby="image-lightbox-description"
>

File diff suppressed because it is too large Load Diff