Skip to content

Lead the card with the likeness, and open pictures full size - #16

Merged
ShaalaXIV merged 1 commit into
mainfrom
claude/bigger-portrait
Sep 23, 2026
Merged

ShaalaXIV merged 1 commit into
mainfrom
claude/bigger-portrait

Conversation

@ShaalaXIV

Copy link
Copy Markdown
Owner

The portrait leads

It was a 100px thumbnail beside a column of text with half the card left empty. It now sits centred at the top at roughly half the card's width (clamped 220–460px), with everything else beneath it. A face is what somebody actually decides on, so it gets the room; the rest scrolls.

Pictures open full size

Clicking a likeness opens it in a resizable, movable window, scaled to fit without cropping or distorting. Gallery images open the same way.

Why the gallery button did nothing

It could not have worked. The card draws inside BeginChild("##cardPage"), and ImGui.OpenPopup called from inside a child pushes onto that child's id stack — while BeginPopupModal was called after EndChild(), at the parent level. The ids never match, so the popup silently never appears. The same reason the preview's gallery button did nothing.

The viewer is now a Window rather than a popup, which has no such coupling and is resizable into the bargain. ProfileCard reports what the reader clicked (OpenImage, OpenGallery) instead of owning popup state it is structurally unable to draw.

Audit and full Release build pass.

🤖 Generated with Claude Code

The portrait leads
------------------
It was a hundred-pixel thumbnail beside a column of text, with half the card
left empty. It now sits centred at the top at roughly half the card's width,
and everything else reads beneath it. A face is what somebody actually decides
on, so it gets the room; the rest scrolls.

Pictures open
-------------
Clicking a likeness opens it full size, in a window that can be resized and
moved. Gallery images open the same way.

The gallery button did nothing at all, and could not have worked: the card draws
inside a child window, and an ImGui popup opened from inside a child cannot be
begun outside it -- the id stacks do not match, so BeginPopupModal never
matches the OpenPopup and the popup silently never appears. The viewer is a
window rather than a popup, which has no such coupling, and the card now reports
what the reader clicked instead of owning popup state it cannot draw.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ShaalaXIV
ShaalaXIV merged commit 4fc8837 into main Sep 23, 2026
1 check passed
@ShaalaXIV
ShaalaXIV deleted the claude/bigger-portrait branch September 23, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant