Skip to content

feat: make copy button sticky in code blocks - #3507

Open
ekim1707 wants to merge 1 commit into
devfrom
1635-copy-button-v2
Open

feat: make copy button sticky in code blocks#3507
ekim1707 wants to merge 1 commit into
devfrom
1635-copy-button-v2

Conversation

@ekim1707

@ekim1707 ekim1707 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Description

This PR makes the copy button in the code-preview-block header sticky so that in code blocks, the copy button will move up and down with the scroll

Changes Made

The only changes were made to code-preview-block and they were very minor

How to Test

  1. Ask Elsa to write a block of code
  2. Scroll up and down the generated code block and observe the Copy button behavior
Screenshot 2026-07-30 153513

@snyk-io

snyk-io Bot commented Jul 30, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@ekim1707
ekim1707 requested a review from kzsb03 July 30, 2026 19:39
@ekim1707
ekim1707 marked this pull request as ready for review July 30, 2026 19:39
@ekim1707
ekim1707 requested a review from a team as a code owner July 30, 2026 19:39
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.

1 participant