Skip to content

fix: prevent game share URL from overflowing on mobile screens#2980

Merged
sydseter merged 1 commit into
OWASP:masterfrom
Adarshkumar0509:fix/mobile-url-input-overflow
May 20, 2026
Merged

fix: prevent game share URL from overflowing on mobile screens#2980
sydseter merged 1 commit into
OWASP:masterfrom
Adarshkumar0509:fix/mobile-url-input-overflow

Conversation

@Adarshkumar0509
Copy link
Copy Markdown
Contributor

@Adarshkumar0509 Adarshkumar0509 commented May 12, 2026

Description

fixed issue: #2979

When creating a game and viewing the session page on a mobile device, the share URL input box overflows outside its container causing the layout to break on small screens.

The input element sits inside a flex row container but was missing min-w-0. Without this, flex children cannot shrink below their content size, so long URLs overflow the screen width on mobile.

Added min-w-0 to the input in the copy_url_button component in lib/copi_web/components/core_components/buttons.ex

Tested on iPhone SE viewport (375px) in Chrome DevTools.
Before:-
image

After:-
image

AI Tool Disclosure

  • My contribution does not include any AI-generated content
  • My contribution includes AI-generated content, as disclosed below:
    • AI Tools: [e.g. GitHub CoPilot, ChatGPT, JetBrains Junie etc.]
    • LLMs and versions: [e.g. GPT-4.1, Claude Haiku 4.5, Gemini 2.5 Pro etc.]
    • Prompts: [Summarize the key prompts or instructions given to the AI tools]

Affirmation

@Adarshkumar0509 Adarshkumar0509 force-pushed the fix/mobile-url-input-overflow branch from 5cef7f7 to d7df953 Compare May 12, 2026 22:08
@Adarshkumar0509
Copy link
Copy Markdown
Contributor Author

hii @sydseter take a look at this, whenever you have time

@sydseter sydseter merged commit ecb0ec7 into OWASP:master May 20, 2026
9 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.

2 participants