Describe the bug
When a code block <ComponentSource /> does not have a title, the copy button is positioned incorrectly. This issue is visible in components that use manual installation, where a title is not rendered.
The problem does not occur when a title is present.
Affected component/components
TweetCard, Globe, Dock, and all components where title is not rendered
How to reproduce
- Go to
TweetCard component docs
- Switch the installation method to Manual
(or open any component that does not render a title in manual installation)
- Observe CopyButton position in step 2 and 3.
This issue is present everywhere the <ComponentSource /> is used without a title.
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting
Describe the bug
When a code block
<ComponentSource />does not have a title, the copy button is positioned incorrectly. This issue is visible in components that use manual installation, where a title is not rendered.The problem does not occur when a title is present.
Affected component/components
TweetCard, Globe, Dock, and all components where title is not rendered
How to reproduce
TweetCardcomponent docs(or open any component that does not render a title in manual installation)
This issue is present everywhere the
<ComponentSource />is used without a title.Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting