Add an empty line for a term finder only when it is absolutely necessary
Reviewed By: mweststrate Differential Revision: D51507094 fbshipit-source-id: cb5e18ab702f60ebbf2e5573180fd21299371139
This commit is contained in:
committed by
Facebook GitHub Bot
parent
88d8567310
commit
1c706b52bc
@@ -17,6 +17,7 @@ const containerStyle = css`
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
align-items: baseline;
|
||||||
border-radius: ${theme.borderRadius};
|
border-radius: ${theme.borderRadius};
|
||||||
border: 1px solid ${theme.borderColor};
|
border: 1px solid ${theme.borderColor};
|
||||||
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ export const PowerSearchTerm: React.FC<PowerSearchTermProps> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Space.Compact block size="small" style={{margin: theme.space.tiny / 2}}>
|
<Space.Compact size="small" style={{margin: theme.space.tiny / 2}}>
|
||||||
<Button tabIndex={-1} style={{pointerEvents: 'none'}}>
|
<Button tabIndex={-1} style={{pointerEvents: 'none'}}>
|
||||||
{searchTerm.field.label}
|
{searchTerm.field.label}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ export const PowerSearchTermFinder = React.forwardRef<
|
|||||||
setSearchTermFinderValue(null);
|
setSearchTermFinderValue(null);
|
||||||
}}>
|
}}>
|
||||||
<Input
|
<Input
|
||||||
|
size="small"
|
||||||
bordered={false}
|
bordered={false}
|
||||||
onKeyUp={(event) => {
|
onKeyUp={(event) => {
|
||||||
if (event.key === 'Enter') {
|
if (event.key === 'Enter') {
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import {Space} from 'antd';
|
|
||||||
import {
|
import {
|
||||||
PowerSearchConfig,
|
PowerSearchConfig,
|
||||||
FieldConfig,
|
FieldConfig,
|
||||||
@@ -129,7 +128,6 @@ export const PowerSearch: React.FC<PowerSearchProps> = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<PowerSearchContainer>
|
<PowerSearchContainer>
|
||||||
<Space size={0} wrap>
|
|
||||||
<SearchOutlined
|
<SearchOutlined
|
||||||
style={{
|
style={{
|
||||||
margin: theme.space.tiny,
|
margin: theme.space.tiny,
|
||||||
@@ -165,7 +163,6 @@ export const PowerSearch: React.FC<PowerSearchProps> = ({
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</Space>
|
|
||||||
<PowerSearchTermFinder
|
<PowerSearchTermFinder
|
||||||
ref={searchTermFinderRef}
|
ref={searchTermFinderRef}
|
||||||
options={options}
|
options={options}
|
||||||
|
|||||||
Reference in New Issue
Block a user