File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 5757 min-width : 100% ;
5858 }
5959
60+ :global(.code-highlight > .highlight-block :last-child ) {
61+ margin-bottom : -10px ;
62+ }
63+
6064 :global(.code-line ) {
6165 display : block ;
6266 float : left ;
7478 }
7579 }
7680
77-
7881 /* Diff highlighting, classes provided by rehype-prism-plus */
7982 /* Set inserted line (+) color */
8083 /* Move the margin left and adjust width so we can keep the parent padding */
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ export function HighlightBlock({
109109 }
110110
111111 return (
112- < HighlightBlockContainer >
112+ < HighlightBlockContainer className = "highlight-block" >
113113 < CodeLinesContainer ref = { codeRef } > { children } </ CodeLinesContainer >
114114 < ClipBoardContainer onClick = { copyCodeOnClick } >
115115 { showCopyButton && ! copied && (
You can’t perform that action at this time.
0 commit comments