style: search models style
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import IconFont from '@/components/icon-font';
|
||||
import hotkeys from '@/config/hotkeys';
|
||||
import { platformCall } from '@/utils';
|
||||
import { SearchOutlined } from '@ant-design/icons';
|
||||
import { useIntl } from '@umijs/max';
|
||||
import { Input, Tag } from 'antd';
|
||||
import { Input } from 'antd';
|
||||
import React, { useRef, useState } from 'react';
|
||||
import { useHotkeys } from 'react-hotkeys-hook';
|
||||
|
||||
@@ -31,19 +30,6 @@ const SearchInput: React.FC<{
|
||||
placeholder={intl.formatMessage({
|
||||
id: 'model.deploy.search.placeholder'
|
||||
})}
|
||||
suffix={
|
||||
!isFocus && (
|
||||
<Tag style={{ marginRight: 0 }}>
|
||||
{platform.isMac ? (
|
||||
<>
|
||||
<IconFont type="icon-command"></IconFont> + K
|
||||
</>
|
||||
) : (
|
||||
<>CTRL + K</>
|
||||
)}
|
||||
</Tag>
|
||||
)
|
||||
}
|
||||
prefix={
|
||||
<>
|
||||
<SearchOutlined
|
||||
|
||||
Reference in New Issue
Block a user