documentation icon indicating copy to clipboard operation
documentation copied to clipboard

[BUG] copy button hiding text

Open sachinraja opened this issue 3 years ago • 7 comments

What / Why

The text at the end of each code block is cut off by the copy button. image image from here

The full line is http.createServer(...).listen(process.env.npm_package_config_port), but the reader can only see http.createServer(...).listen(process.env.npm_package_config.

Where

  • any block where the text fills the entire line

How

Current Behavior

  • copy button covers last part of line in code block

Steps to Reproduce

  • go to any block where the text fills the entire line on the documentation website

Expected Behavior

  • the copy button should not hide any text or should only show on hover (this is what GitHub does)

sachinraja avatar Jun 22 '21 01:06 sachinraja

hey @sachinraja thanks for reporting. It might take our team a couple weeks to find time to work on this. I'm throwing a help wanted label on here in the mean time in case anyone wants to try and fix this

MylesBorins avatar Jun 25 '21 17:06 MylesBorins

@MylesBorins i want to work on this issue?

khairnarsaurabh23 avatar Nov 18 '21 02:11 khairnarsaurabh23

It will be greate if i'll get some resourses for reference?

khairnarsaurabh23 avatar Nov 18 '21 02:11 khairnarsaurabh23

hey @khairnarsaurabh23 I just noticed that it appears @sachinraja might have fixed this in https://github.com/npm/doctornpm/pull/1 (and we totally missed it). Will give that a review this week and let you know if that closes this issue

MylesBorins avatar Nov 18 '21 05:11 MylesBorins

[BUG] copy button hiding text

sanmins avatar Oct 12 '22 07:10 sanmins

[BUG] copy button hiding text

sanmins avatar Oct 12 '22 07:10 sanmins

yy

sanmins avatar Oct 12 '22 07:10 sanmins

Hey this still open?

AshwanthramKL avatar Apr 25 '23 06:04 AshwanthramKL