[PR #8827] [MERGED] fix(client): keep the picked persona avatar inside the picker #8832

Closed
opened 2026-11-07 17:40:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8827
Author: @Gunterlie
Created: 11/4/2026
Status: ✅ Merged
Merged: 11/4/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/8826-wizard-persona


📝 Commits (1)

  • 5dee0c3 fix(client): keep the picked persona avatar inside the picker

📊 Changes

3 files changed (+15 additions, -8 deletions)

View changed files

📝 packages/client/src/components/characters/CharacterSelect.tsx (+14 -6)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+1 -1)
📝 packages/client/src/localization/locales/en.json (+0 -1)

📄 Description

Why

Fixes #8826. Fixes #8828 (same trigger, used by the lorebook character and persona links). Since the setup wizards moved to the shared CharacterSelect picker (ab98d3343e), picking a persona with a cropped avatar made the avatar cover the whole wizard. The X the user then clicked was the wizard's own close button, so the wizard closed straight to Chat Settings and the first message never loaded.

What changed

  • CharacterSelect trigger avatars: getAvatarCropStyle positions a crop absolutely and wider than the circle. The trigger <img> had no clipping parent, so it spread over the nearest positioned ancestor (the wizard). It now sits in a relative overflow-hidden span, like the picker rows (CharacterPickerList Avatar).
  • Chat wizard persona picker: an empty selection now reads "None" (the shared picker default) instead of "Stay anonymous". The unused ui.chat.personapicker.stayAnonymous string is removed.

Not changed: the wizard still starts with no persona. Global active personas were retired on 2026-09-14, so there is no default persona. Quick setup already preselects the chat profile's persona.

Validation

  • pnpm -C packages/client run lint (ESLint + client tsc): 0 errors.
  • pnpm localization:check: pass.
  • Prettier check on changed files: pass.

Manual verification

  • Manually verify in the browser: start a new Chat, RP and Game through the wizard, pick a persona that has a cropped avatar. The avatar stays a small circle in the picker and the wizard stays open.
  • Manually verify that finishing the wizard loads the first message.
  • Manually verify an empty persona shows "None".

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8827 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 11/4/2026 **Status:** ✅ Merged **Merged:** 11/4/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/8826-wizard-persona` --- ### 📝 Commits (1) - [`5dee0c3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5dee0c374bc512948840f9c74c5bcb34dcc1f3bd) fix(client): keep the picked persona avatar inside the picker ### 📊 Changes **3 files changed** (+15 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/characters/CharacterSelect.tsx` (+14 -6) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+1 -1) 📝 `packages/client/src/localization/locales/en.json` (+0 -1) </details> ### 📄 Description ## Why Fixes #8826. Fixes #8828 (same trigger, used by the lorebook character and persona links). Since the setup wizards moved to the shared `CharacterSelect` picker (ab98d3343e), picking a persona with a cropped avatar made the avatar cover the whole wizard. The X the user then clicked was the wizard's own close button, so the wizard closed straight to Chat Settings and the first message never loaded. ## What changed - `CharacterSelect` trigger avatars: `getAvatarCropStyle` positions a crop absolutely and wider than the circle. The trigger `<img>` had no clipping parent, so it spread over the nearest positioned ancestor (the wizard). It now sits in a `relative overflow-hidden` span, like the picker rows (`CharacterPickerList` `Avatar`). - Chat wizard persona picker: an empty selection now reads "None" (the shared picker default) instead of "Stay anonymous". The unused `ui.chat.personapicker.stayAnonymous` string is removed. Not changed: the wizard still starts with no persona. Global active personas were retired on 2026-09-14, so there is no default persona. Quick setup already preselects the chat profile's persona. ## Validation - `pnpm -C packages/client run lint` (ESLint + client tsc): 0 errors. - `pnpm localization:check`: pass. - Prettier check on changed files: pass. ## Manual verification - [ ] Manually verify in the browser: start a new Chat, RP and Game through the wizard, pick a persona that has a cropped avatar. The avatar stays a small circle in the picker and the wizard stays open. - [ ] Manually verify that finishing the wizard loads the first message. - [ ] Manually verify an empty persona shows "None". --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:40:03 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8832
No description provided.