Skip to content

Commit

Permalink
don't use a monospace font when not rendering code in a magic link
Browse files Browse the repository at this point in the history
  • Loading branch information
varun7654 committed May 21, 2024
1 parent fc85cb6 commit fc8003d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/problem/Problem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export default function Problem() {
>
<div className="p-2 bg-basically-black text-[#abb2bf]"
style={{
fontFamily: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',
fontFamily: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier,' + (magicLinksHover.highlight ? "monospace" : ""),
whiteSpace: "pre-wrap",
}}
dangerouslySetInnerHTML={{__html: hoverHtml}
Expand Down

0 comments on commit fc8003d

Please sign in to comment.