Skip to content

Commit

Permalink
Reduce machine learning table spacing
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Wang <[email protected]>
  • Loading branch information
wanglam committed Sep 26, 2024
1 parent 491eb88 commit 3d470f9
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions public/components/monitoring/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,28 +104,29 @@ export const Monitoring = (props: MonitoringProps) => {
/>
<EuiPanel>
{!useNewPageHeader && (
<EuiText size="s">
<h2>
<FormattedMessage
id="machineLearning.aiModels.table.header.title"
defaultMessage="Models {records}"
values={{
records:
pageStatus === 'normal' ? (
<EuiTextColor aria-label="total number of results" color="subdued">
({pagination?.totalRecords ?? 0})
</EuiTextColor>
) : undefined,
}}
/>
</h2>
</EuiText>
<>
<EuiText size="s">
<h2>
<FormattedMessage
id="machineLearning.aiModels.table.header.title"
defaultMessage="Models {records}"
values={{
records:
pageStatus === 'normal' ? (
<EuiTextColor aria-label="total number of results" color="subdued">
({pagination?.totalRecords ?? 0})
</EuiTextColor>
) : undefined,
}}
/>
</h2>
</EuiText>
<EuiSpacer size="m" />
</>
)}

<EuiSpacer size="m" />
{pageStatus !== 'empty' && (
<>
<EuiFlexGroup gutterSize="l">
<EuiFlexGroup gutterSize={useNewPageHeader ? 's' : 'l'}>
<EuiFlexItem>
<SearchBar inputRef={setInputRef} onSearch={searchByNameOrId} />
</EuiFlexItem>
Expand Down

0 comments on commit 3d470f9

Please sign in to comment.