upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit f1ac747da6 - Show all commits

View File

@ -21,7 +21,7 @@ const Pre = (props) => {
} }
return ( return (
<pre ref={textInput} onMouseEnter={onEnter} onMouseLeave={onExit} className="relative"> <div ref={textInput} onMouseEnter={onEnter} onMouseLeave={onExit} className="relative">
{hovered && ( {hovered && (
<button <button
aria-label="Copy code" aria-label="Copy code"
@ -62,8 +62,9 @@ const Pre = (props) => {
</svg> </svg>
</button> </button>
)} )}
{props.children}
</pre> <pre>{props.children}</pre>
</div>
) )
} }

View File

@ -6,7 +6,7 @@
@apply px-5 py-3 font-mono text-sm font-bold text-gray-200 bg-gray-700 rounded-t; @apply px-5 py-3 font-mono text-sm font-bold text-gray-200 bg-gray-700 rounded-t;
} }
.remark-code-title + pre { .remark-code-title + div > pre {
@apply mt-0 rounded-t-none; @apply mt-0 rounded-t-none;
} }