Skip to content

Copy code button not working #1954

Description

@zachcasper

Describe the bug

On a code block, there should be a copy code button on mouseover to copy the code to the clipboard. Now:

  1. On mouseover, the javascript responds by adding a new line to the outer box.
  2. If you mouseover the top right portion of the code block, the copy button appears, but it misaligned, and the "Copy to clipboard" label is flashes

See screenshots.

Steps to reproduce

  1. Visit the quickstart page https://docs.radapp.io/quick-start/
  2. Mouse over a code block
  3. Mouse over the top right of the code block

Expected behavior

  1. A copy code icon on the far right of the code block

Screenshots

No mouseover:

Image

On mouseover:

Image

Notice the box is extended down.

On mouse over the top right:

Image

Desktop (please complete the following information):

Tested on MacOS Chrome and Safari

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions