cornucopia icon indicating copy to clipboard operation
cornucopia copied to clipboard

fix: URL input overflows on mobile in game session view

Open Adarshkumar0509 opened this issue 6 months ago • 1 comments

Bug Description

On mobile screens, the game session share URL input box overflows outside its container, causing horizontal page overflow and poor UX.

Steps to Reproduce

  1. Create a new game at /games/new
  2. Open the game session page on a mobile device or mobile viewport
  3. Observe the URL input box overflowing beyond the screen width

Expected Behavior

The URL input should fit within its container on all screen sizes.

Actual Behavior

The URL text overflows the container causing layout breakage on mobile.

Root Cause

The <input> inside a flex row container was missing min-w-0. Without it, flex children cannot shrink below their content size, causing the long URL to overflow on narrow screens.

Fix

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

Screenshots

My device was Redmi note 10s

Image

Adarshkumar0509 avatar May 12 '26 21:05 Adarshkumar0509

i saw this when i was opening from my mobilephone and because i have previously worked with similar fix i thought i would fix this thats why i raise a issue and happy to work on this

Adarshkumar0509 avatar May 12 '26 21:05 Adarshkumar0509