调整样式,删除多余代码

This commit is contained in:
Bhwa233
2024-03-16 14:50:07 +08:00
parent b1ffa28303
commit c0acdbff43
2 changed files with 1 additions and 9 deletions

View File

@@ -6,7 +6,6 @@ import { useGlobal } from '@/lib/global'
import throttle from 'lodash/throttle'
import { siteConfig } from '@/lib/config'
import { useHotkeys } from 'react-hotkeys-hook';
import ShortcutTag from '@/components/ShortcutTag'
const ShortCutActions = [
{
@@ -254,7 +253,7 @@ export default function AlgoliaSearchModal({ cRef }) {
{totalHit === 0 && (<div className='flex items-center'>
{
ShortCutActions.map((action, index) => {
return <Fragment key={index}><div className={`border-gray-300 dark:text-gray-400 text-gray-400 px-1 rounded border inline-block `}>{action.key}</div>
return <Fragment key={index}><div className={`border-gray-300 dark:text-gray-300 text-gray-600 px-2 rounded border inline-block `}>{action.key}</div>
<span className='ml-2 mr-4 text-gray-600 dark:text-gray-300'>{action.action}</span></Fragment>
})
}

View File

@@ -1,7 +0,0 @@
// 操作提示标签
import React from 'react';
const ShortcutTag = ({ children, className }) => {
return <div className={`border-gray-300 dark:text-gray-400 text-gray-400 text-xs px-1 rounded border inline-block ${className}`}>{children}</div>
}
export default ShortcutTag