From 5f2a1b4e41a6c3206a75a6cf52ac3a6f8c49f2c1 Mon Sep 17 00:00:00 2001 From: "andrii.dudar" Date: Fri, 6 Sep 2024 10:58:09 +0200 Subject: [PATCH] - fix styles for hotkey tooltip (#190) - fix styles for code editor --- .../src/components/shared/CodeHighlighter/CodeHighlighter.tsx | 4 ++-- .../components/shared/SyntaxHighlighter/SyntaxHighlighter.tsx | 2 +- .../src/components/shared/TooltipWrapper/TooltipWrapper.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/opik-frontend/src/components/shared/CodeHighlighter/CodeHighlighter.tsx b/apps/opik-frontend/src/components/shared/CodeHighlighter/CodeHighlighter.tsx index 0eea30b18f..d697ce6df9 100644 --- a/apps/opik-frontend/src/components/shared/CodeHighlighter/CodeHighlighter.tsx +++ b/apps/opik-frontend/src/components/shared/CodeHighlighter/CodeHighlighter.tsx @@ -33,8 +33,8 @@ const CodeHighlighter: React.FunctionComponent = ({ const { themeMode } = useTheme(); return ( -
-
+
+
= ({ tooltipText="Copy code" />
-
+
= ({ {content} {hotkey && ( -
+
{hotkey}
)}