Skip to content

Commit

Permalink
Fix copy button on comment code block. (WordPress#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne authored Jul 19, 2024
1 parent 8b33d50 commit 5c98ac9
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,17 @@ a):not(.wporg-developer-code-block a) {
display: none !important;
}

.wporg-developer-code-block .wp-code-block-button-container {
align-items: initial;
}

// Hide the file name in comments.
.wporg-developer-code-block {
.wp-code-block-button-container {
justify-content: end;
.wporg-developer-code-block .wp-code-block-button-container code {
display: none;
}

code {
display: none;
}
}
.wporg-developer-code-block .wp-code-block-button-container code + span {
grid-column: 2;
}
}

Expand Down

0 comments on commit 5c98ac9

Please sign in to comment.