Align buttons to the top

Reviewed By: mweststrate

Differential Revision: D51506570

fbshipit-source-id: 5fc52b214eb61f5da0c3417016e87a79866d4506
This commit is contained in:
Andrey Goncharov
2023-11-21 12:48:27 -08:00
committed by Facebook GitHub Bot
parent 0425dfd4e5
commit 88d8567310
2 changed files with 3 additions and 5 deletions

View File

@@ -213,7 +213,6 @@ export function MasterDetailWithPowerSearch<T extends object>({
<Button
size="small"
type="text"
style={{height: '100%'}}
title={`Click to ${pausedState ? 'resume' : 'pause'} the stream`}
danger={pausedState}
onClick={handleTogglePause}>
@@ -225,8 +224,7 @@ export function MasterDetailWithPowerSearch<T extends object>({
size="small"
type="text"
title="Clear records"
onClick={handleClear}
style={{height: '100%'}}>
onClick={handleClear}>
<DeleteOutlined />
</Button>
)}

View File

@@ -921,7 +921,7 @@ export function DataTable<T extends object>(
<Layout.Container>
{props.actionsTop ? <Searchbar gap>{props.actionsTop}</Searchbar> : null}
{props.enableSearchbar && (
<Searchbar grow shrink gap>
<Searchbar grow shrink gap style={{alignItems: 'baseline'}}>
<PowerSearch
config={powerSearchConfig}
searchExpression={searchExpression}
@@ -941,7 +941,7 @@ export function DataTable<T extends object>(
/>
{contexMenu && (
<Dropdown overlay={contexMenu} placement="bottomRight">
<Button type="text" size="small" style={{height: '100%'}}>
<Button type="text" size="small">
<MenuOutlined />
</Button>
</Dropdown>