Skip to content

fix(ui): prevent long toast messages from overflowing - #1037

Merged
WCY-dt merged 1 commit into
DevXDojo:release/v1.3.28from
marcomarcogd:codex/fix-toast-overflow
Aug 26, 2026
Merged

fix(ui): prevent long toast messages from overflowing#1037
WCY-dt merged 1 commit into
DevXDojo:release/v1.3.28from
marcomarcogd:codex/fix-toast-overflow

Conversation

@marcomarcogd

Copy link
Copy Markdown
Contributor

Description

Keep toast notifications inside narrow application windows even when messages contain long continuous text.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • 🎨 Style/UI change
  • ✅ Test addition/update

Related Issues

Fixes #1036

Changes Made

  • Cap toast width to the available viewport.
  • Allow long and unbroken messages to wrap inside the message region.
  • Keep status icons and the close button visible without shrinking.
  • Extend the existing frontend test file with a regression assertion.

Testing

Test Configuration

  • OS: macOS 15
  • MrRSS Version: current main
  • Node Version: 24

Test Steps

  1. Run cd frontend && npm run lint.
  2. Run npm test -- --run src/App.test.ts -t 'keeps long toast messages inside narrow viewports'.
  3. Verify a long continuous message wraps and the close button remains visible.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective
  • New and existing targeted tests pass locally with my changes
  • This change has no dependent changes

Additional Notes

The existing broader App.test.ts mount test is affected locally by the Vitest environment not providing localStorage; the new targeted regression test passes independently.

Breaking Changes

None.

@WCY-dt
WCY-dt changed the base branch from main to release/v1.3.28 August 25, 2026 14:16
@marcomarcogd
marcomarcogd marked this pull request as ready for review August 26, 2026 00:53
@WCY-dt
WCY-dt merged commit fcd35db into DevXDojo:release/v1.3.28 Aug 26, 2026
4 checks passed
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.

[STYLE] Long toast messages overflow narrow windows

2 participants