mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5701] [MERGED] feat(client): enlarge a browsed character card image on click #6891
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6891
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5701
Author: @Gunterlie
Created: 8/31/2026
Status: ✅ Merged
Merged: 8/31/2026
Merged by: @Gunterlie
Base:
staging← Head:feat/bot-browser-avatar-zoom📝 Commits (3)
9be9d02feat(client): enlarge a browsed character card image on click5aa4840feat(bot-browser): serve the card PNG to the enlarged image view3688d9eMerge branch 'staging' into feat/bot-browser-avatar-zoom📊 Changes
3 files changed (+83 additions, -9 deletions)
View changed files
📝
packages/client/src/components/bot-browser/BotBrowserView.tsx(+73 -6)📝
packages/client/src/localization/locales/en.json(+2 -0)📝
packages/server/src/routes/bot-browser.routes.ts(+8 -3)📄 Description
Closes #5691
Why
In the online card browser, the card image on the detail page is a 224px square with
object-cover, so it is both small and cropped, and clicking it did nothing. The request was to enlarge it "and in better quality".What
1. Click to enlarge. The detail-page image is now a button that opens a full-screen overlay showing the image uncropped (
object-contain, up to 90vw/90vh). Escape or a backdrop click closes it.2. Actually higher quality. The thumbnail the browser shows is ChubAI's compressed
avatar.webp.GET /api/bot-browser/chub/avatar/*now acceptsfull=1, which preferschara_card_v2.png— the same full card PNG the import path downloads — and still falls back toavatar.webp. The overlay requestsfull=1, and falls back to the thumbnail URL if that image fails to load.Providers other than ChubAI expose one image through their proxy route, so the overlay shows that same asset, larger and uncropped.
Adds two
en.jsonkeys; other locales fall back to English until translated.Test plan
pnpm check?full=1and that the returned image is larger than the thumbnailchara_card_v2.pngstill shows the thumbnail in the overlay rather than a broken image🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.