lingo.dev icon indicating copy to clipboard operation
lingo.dev copied to clipboard

Bug Report: Copy button overlaps text in code block

Open aryan1752 opened this issue 1 month ago • 9 comments

Description

The copy-to-clipboard icon on code snippets overlaps with the code text, making it hard to read or select the code on smaller screens (especially mobile view).

Steps to Reproduce:

  1. Go to the Lingo.dev Docs page (e.g., Installation or Basic setup section).

  2. View the page on a mobile device or resize the browser window to a smaller width.

Expected Behavior:

the icon should Stay aligned to the top-right corner outside the code text area.

Not overlap with the code text, ensuring full visibility and readability.

Screenshot_2025-10-30-14-52-30-405_com.android.chrome.jpg

aryan1752 avatar Oct 30 '25 09:10 aryan1752

Hi @aryan1752 , I’d like to work on this issue! Could you please assign it to me?

From the description, it seems that the copy-to-clipboard icon overlaps with the code block text on smaller screens. My plan to fix this issue would be:

Inspect the code block container (likely a div wrapping the code) and the icon element.

Adjust the positioning — probably by adding position: relative to the parent container and setting the icon as position: absolute; top: 8px; right: 8px; (or similar).

Add responsive styling — using media queries to ensure the icon remains visible but doesn’t overlap with the text on smaller screens.

Test across different screen sizes (especially mobile view) to ensure readability and accessibility.

If that sounds good, please assign this issue to me — I’d be happy to start working on it right away 🚀

Thanks!

Theharishpatel avatar Oct 30 '25 10:10 Theharishpatel

Hi @aryan1752 , I'd like to take a look at fixing this issue. Can I be assigned to it?

himubey avatar Oct 30 '25 10:10 himubey

HI @aryan1752 i like to work on this , can you assign this to me ? thanks ;)

Vaibhav-cyper avatar Oct 30 '25 11:10 Vaibhav-cyper

Hi @aryan1752 , I would like to work on this , could you please assign this task to me ?

ranjithreddykv avatar Oct 30 '25 16:10 ranjithreddykv

ImageBut it doesn't seem to be showing the mobile devices. that copy button is overlap

tech-dipesh avatar Oct 31 '25 03:10 tech-dipesh

Go to quick start in hamburger and you will see it

aryan1752 avatar Oct 31 '25 04:10 aryan1752

Go to quick start in hamburger and you will see it I can see it , can I start working on this . :)

Vaibhav-cyper avatar Oct 31 '25 08:10 Vaibhav-cyper

Hi @aryan1752 :) I have some experience working on UI, I would love to contribute!

yash-144 avatar Oct 31 '25 08:10 yash-144

referring this to you @davidturnbull

sumitsaurabh927 avatar Oct 31 '25 18:10 sumitsaurabh927