feat: tooltip (#7634)

This commit is contained in:
Yi Xiao 2024-08-26 13:00:02 +08:00 committed by GitHub
commit 3be756eaed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
93 changed files with 640 additions and 758 deletions

View file

@ -1,6 +1,6 @@
import { memo } from 'react'
import ShortcutsName from '../shortcuts-name'
import TooltipPlus from '@/app/components/base/tooltip-plus'
import Tooltip from '@/app/components/base/tooltip'
type TipPopupProps = {
title: string
@ -13,9 +13,8 @@ const TipPopup = ({
shortcuts,
}: TipPopupProps) => {
return (
<TooltipPlus
<Tooltip
offset={4}
hideArrow
popupClassName='!p-0 !bg-gray-25'
popupContent={
<div className='flex items-center gap-1 px-2 h-6 text-xs font-medium text-gray-700 rounded-lg border-[0.5px] border-black/5'>
@ -27,7 +26,7 @@ const TipPopup = ({
}
>
{children}
</TooltipPlus>
</Tooltip>
)
}