Skip to content

Commit

Permalink
fix paddings
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Nov 16, 2021
1 parent a4c68d9 commit 2b35886
Showing 1 changed file with 23 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export const ExpandedRow: FC<ExpandedRowProps> = ({ item }) => {
),
content: (
<>
<EuiSpacer size={'m'} />
<EuiSpacer size={'s'} />
<EuiFlexGrid columns={2} gutterSize={'m'}>
<EuiFlexItem>
<EuiPanel>
Expand Down Expand Up @@ -216,7 +216,7 @@ export const ExpandedRow: FC<ExpandedRowProps> = ({ item }) => {
),
content: (
<>
<EuiSpacer size={'m'} />
<EuiSpacer size={'s'} />
<EuiFlexGrid columns={2} gutterSize={'m'}>
<EuiFlexItem>
<EuiPanel>
Expand Down Expand Up @@ -276,27 +276,26 @@ export const ExpandedRow: FC<ExpandedRowProps> = ({ item }) => {
),
content: (
<>
<EuiSpacer size={'m'} />
{!!modelItems?.length ? (
<>
<EuiPanel>
<EuiTitle size={'xs'}>
<h5>
<FormattedMessage
id="xpack.ml.trainedModels.modelsList.expandedRow.deploymentStatsTitle"
defaultMessage="Deployment stats"
/>
</h5>
</EuiTitle>
<EuiSpacer size={'m'} />
<AllocatedModels models={modelItems} hideColumns={['model_id']} />
</EuiPanel>
<EuiSpacer size={'s'} />

<EuiSpacer size={'m'} />
</>
) : null}
<EuiFlexGrid columns={2}>
{stats.inference_stats && (
<EuiFlexGrid columns={2} gutterSize={'m'}>
{!!modelItems?.length ? (
<EuiFlexItem grow={2}>
<EuiPanel>
<EuiTitle size={'xs'}>
<h5>
<FormattedMessage
id="xpack.ml.trainedModels.modelsList.expandedRow.deploymentStatsTitle"
defaultMessage="Deployment stats"
/>
</h5>
</EuiTitle>
<EuiSpacer size={'m'} />
<AllocatedModels models={modelItems} hideColumns={['model_id']} />
</EuiPanel>
</EuiFlexItem>
) : null}
{stats.inference_stats ? (
<EuiFlexItem>
<EuiPanel>
<EuiTitle size={'xs'}>
Expand All @@ -315,7 +314,7 @@ export const ExpandedRow: FC<ExpandedRowProps> = ({ item }) => {
/>
</EuiPanel>
</EuiFlexItem>
)}
) : null}
</EuiFlexGrid>
</>
),
Expand All @@ -337,7 +336,7 @@ export const ExpandedRow: FC<ExpandedRowProps> = ({ item }) => {
),
content: (
<>
<EuiSpacer size={'m'} />
<EuiSpacer size={'s'} />
<ModelPipelines pipelines={pipelines!} ingestStats={stats.ingest} />
</>
),
Expand Down

0 comments on commit 2b35886

Please sign in to comment.