[feat] <rh-code-block> hide wrap button when content doesn't need it
#2715
widescreenBob
started this conversation in
Ideas
Replies: 1 comment
-
|
This would be useful for us on docs as we have multiple codeblocks on the page, we could have some logic maybe to add the wrap action based on content, but it would be nice if the component was 'self aware' reducing our processing needs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
We are using the actions="copy wrap". However sometimes the code block is not large enough to require a wrap. The wrap button still appears in this situation.
Suggested solution
It would be good if the component could detect that a wrap was not required, and did not present the wrap button when it is not needed based on content size.
Screenshots
No response
Example API
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions