New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add button to copy code in markdown #1845
Conversation
@@ -36,6 +38,7 @@ const sx: SystemStyleObject = { | |||
bg: "gray.300", | |||
p: 0.5, | |||
borderRadius: "2px", | |||
marginRight: "40px", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also why you need marginRight here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want the button to be hiding some text
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe show the button when hover only like GitHub does, or maybe add margin to the code element only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also please try inset-block-end
or inset-inline-end
instead of margin-right
for RTL languages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ pre-commit failed. |
❌ pre-commit failed. |
1 similar comment
❌ pre-commit failed. |
Something gone wrong there. Super sorry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much
Resolves #1814
Not sure if using Toast is a bit too much but I think it fits the style