Skip to content

Commit

Permalink
- fix styles for hotkey tooltip (#190)
Browse files Browse the repository at this point in the history
- fix styles for code editor
  • Loading branch information
andriidudar authored Sep 6, 2024
1 parent 817df3b commit 5f2a1b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const CodeHighlighter: React.FunctionComponent<CodeHighlighterProps> = ({
const { themeMode } = useTheme();

return (
<div className="relative rounded-md border p-2">
<div className="absolute right-2 top-1 z-10">
<div className="relative rounded-md border">
<div className="absolute right-2 top-0.5 z-10">
<CopyButton
message="Successfully copied code"
text={data}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const SyntaxHighlighter: React.FunctionComponent<SyntaxHighlighterProps> = ({
tooltipText="Copy code"
/>
</div>
<div className="p-2">
<div>
<CodeMirror
theme={themeMode}
value={formattedCodeByLanguage}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const TooltipWrapper: React.FunctionComponent<TooltipWrapperProps> = ({
<TooltipContent side={side} variant={hotkey ? "hotkey" : "default"}>
{content}
{hotkey && (
<div className="flex h-5 min-w-5 items-center justify-center rounded-s border border-light-slate px-1 text-light-slate">
<div className="flex h-5 min-w-5 items-center justify-center rounded-sm border border-light-slate px-1 text-light-slate">
{hotkey}
</div>
)}
Expand Down

0 comments on commit 5f2a1b4

Please sign in to comment.