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

View File

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