mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3481
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1481
Author: @BGonnermann
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:web/code-copy-footer-1257📝 Commits (1)
91056fdweb: add Copy below code blocks (#1257)📊 Changes
3 files changed (+93 additions, -2 deletions)
View changed files
➕
serve/test_web_code_copy.py(+89 -0)📝
serve/web/app.js(+3 -2)📝
serve/web/components.css(+1 -0)📄 Description
Fixes #1257.
Copying a long code block currently requires scrolling back to its header. Add a matching Copy button below the code so the action is available at either end. Both buttons use the existing handler to copy that block's exact text, with the existing checkmark feedback and clipboard fallback.
The footer uses the existing code-block and icon-button styling. Complete, empty, and unfinished fenced blocks all have both controls. Code and language text remain escaped.
Validation on Windows 11, Python 3.14.7, and Node 24.19.0:
python -m unittest serve.test_web_code_copy -v: three tests pass. The missing-footer assertions fail on the original renderer.python -m unittest discover -s serve -p 'test_*.py' -v: 566 tests, OK, six skipped in the normal Windows user environment.node --check serve/web/app.jsandgit diff --checkpass. Independent source/test review found no issues.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.