Skip to content

Commit

Permalink
fix: Positioning of copy button in codeblock on RTL Locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishruta-Patil committed Mar 22, 2023
1 parent c04fab3 commit 8710dac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function CodeBlockString({
</pre>
)}
</Highlight>
<div className={styles.buttonGroup}>
<div className={`${styles.buttonGroup} ${styles.buttonBlockSpace}`}>
{(wordWrap.isEnabled || wordWrap.isCodeScrollable) && (
<WordWrapButton
className={styles.codeButton}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,7 @@
:global(.theme-code-block:hover) .buttonGroup button {
opacity: 0.4;
}

.buttonBlockSpace {
right: calc(var(--ifm-pre-padding) / 2) !important;
}

0 comments on commit 8710dac

Please sign in to comment.