From c24a76fb869118f9fa35a705aa32aa8339a1a86e Mon Sep 17 00:00:00 2001 From: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com> Date: Sun, 15 Jun 2025 10:28:18 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=83=84=E3=83=BC=E3=83=AB=E3=83=81?= =?UTF-8?q?=E3=83=83=E3=83=97=E3=81=AE=E8=A1=A8=E7=A4=BA=E3=82=92=E6=94=B9?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- website/src/components/ui/Tooltip.tsx | 102 ++++++++++++++++++-------- 1 file changed, 70 insertions(+), 32 deletions(-) diff --git a/website/src/components/ui/Tooltip.tsx b/website/src/components/ui/Tooltip.tsx index fe26bd57b5..9b7a24b5ed 100644 --- a/website/src/components/ui/Tooltip.tsx +++ b/website/src/components/ui/Tooltip.tsx @@ -1,5 +1,5 @@ import type { FC } from "hono/jsx"; -import { HelpCircleIcon } from "../icons"; +import { CloseIcon, HelpCircleIcon } from "../icons"; import { HtmlContent } from "./HtmlContent"; type TooltipProps = { @@ -85,43 +85,81 @@ const tooltipContent: Record< export const Tooltip: FC = ({ kind }) => { const content = tooltipContent[kind]; - if (content.isShowLabel) { - return ( + return ( +
+ {content.isShowLabel && ( + {content.label} + )} + + +
- {content.label} -
-
- +
+
+
+ {content.label} +
+
-
- ); - } - return ( -
-
- -
-
); };