[PR #4180] [MERGED] fix(chat): stop stretching chat background images #6272

Closed
opened 2026-10-23 04:08:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4180
Author: @Gunterlie
Created: 7/27/2026
Status: ✅ Merged
Merged: 7/27/2026
Merged by: @SpicyMarinara

Base: staging ← Head: chat-background-squishing


📝 Commits (3)

  • 93af890 fix(chat): stop stretching chat background images
  • 97a795a Merge branch 'staging' into chat-background-squishing
  • b273e88 Merge branch 'staging' into chat-background-squishing

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+2 -2)

📄 Description

Linked issue

Closes #

Why this change

  • Chat background images were being stretched/squished when their aspect ratio didn't match the chat surface. On desktop the <img> used object-fill which distorts the image to fill the container; mobile already used object-cover via the max-md: breakpoint modifier.

What changed

  • ChatRoleplaySurface.tsx: changed object-fill … max-md:object-cover → object-cover on the two CrossfadeBackground <img> layers, so images always scale to fill without distortion at all breakpoints.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify: set a chat background image whose aspect ratio differs from the chat panel (e.g. portrait image in landscape panel) and confirm it covers without stretching.
  • Also check narrow/mobile viewport to confirm object-cover still applies correctly there.

Docs and release impact

  • No docs changes needed

UI evidence (if applicable)


🔄 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/4180 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 7/27/2026 **Status:** ✅ Merged **Merged:** 7/27/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `chat-background-squishing` --- ### 📝 Commits (3) - [`93af890`](https://github.com/Pasta-Devs/Marinara-Engine/commit/93af890f0641c7aa70d7763ce7322ddd3c5917df) fix(chat): stop stretching chat background images - [`97a795a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/97a795a1119196dc714d2a1b9bdd250307282646) Merge branch 'staging' into chat-background-squishing - [`b273e88`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b273e885c7416231cd6880f73ad34e55752c2151) Merge branch 'staging' into chat-background-squishing ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+2 -2) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes # ## Why this change - Chat background images were being stretched/squished when their aspect ratio didn't match the chat surface. On desktop the `<img>` used `object-fill` which distorts the image to fill the container; mobile already used `object-cover` via the `max-md:` breakpoint modifier. ## What changed - `ChatRoleplaySurface.tsx`: changed `object-fill … max-md:object-cover` → `object-cover` on the two `CrossfadeBackground` `<img>` layers, so images always scale to fill without distortion at all breakpoints. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify: set a chat background image whose aspect ratio differs from the chat panel (e.g. portrait image in landscape panel) and confirm it covers without stretching. - Also check narrow/mobile viewport to confirm `object-cover` still applies correctly there. ## Docs and release impact - [x] No docs changes needed ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:08:49 +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#6272
No description provided.