Skip to content

Fix notice text overflowing its box on narrow screens - #136

Open
An16og wants to merge 1 commit into
QuiltMC:mainfrom
An16og:fix-notice-text-overflow
Open

An16og wants to merge 1 commit into
QuiltMC:mainfrom
An16og:fix-notice-text-overflow

Conversation

@An16og

@An16og An16og commented Oct 10, 2026 •

Copy link
Copy Markdown

Fixes #131

Problem

On narrow screens (for example phones), the long GitHub URL in the red "This website is still under development" notice can't wrap, so it spills out of the box on the right side.

Fix

Added a notice-body class to the message-body div of both notice boxes in src/routes/+layout.svelte (the dev notice and the translation notice). The class sets overflow-wrap: anywhere, so long words and URLs wrap inside the box. The rule is scoped to this component, so nothing else on the site is affected.

Testing

Checked in browser devtools at about 380px width: the URL now wraps inside the box instead of overflowing. Desktop layout is unchanged.

Screenshots

Before:
image

After:
Screenshot 2026-10-11 003816


See preview on Cloudflare Pages: https://preview-136.developer-wiki.pages.dev

This branch has not been deployed

No deployments
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.

Text out of boundaries

1 participant