-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
needs inputIssue needs further input by the reporterIssue needs further input by the reporter
Description
Context
No response
Bug description
Hi team,
When I have the following features enabled...
- "content.code.annotate",
- "content.code.copy",
- "content.code.select"
...the buttons overlap on long snippets of code making the code annotation button unreachable.
The only workaround I can find is to force newlines into the codeblock to force the code annotation to be underneath the copy to clipboard and toggle line selection buttons.
I thought adding the title to the code might place the copy code and enable line selectors inline with the title but this wasn't the case.
Related links
Reproduction
Here is a visual of the issue.
Here is an example of the code block + code annotation in the markdown file:
[codeblock_rpr.zip](https://github.com/user-attachments/files/25446926/codeblock_rpr.zip)
```sh
pip install git+https://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.git@vMaj.Min.Pat # (1)!
```
1. Replace Major, Minor, Patch with the version of aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa that you want
A workaround is to add anything that forces new lines such as \n but obviously doesn't look great.
Steps to reproduce
- Have code annotations enabled, copy code enabled and toggle line selection enabled
- Add fenced codeblock to a markdown file with a rather long piece of code
- Render through
zensical serveand see how the buttons overlap
Browser
Firefox
Before submitting
- I have read and followed the bug reporting guidelines.
- I have attached links to the documentation, and possibly related issues.
- I assure that I have removed all customizations before submitting this bug report.
- I have attached a .zip file with a minimal reproduction.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs inputIssue needs further input by the reporterIssue needs further input by the reporter