mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-28 10:28:22 +00:00
fix(ui/ingest): scroll on summary tab (#14263)
This commit is contained in:
parent
1c83f78296
commit
446511324b
@ -28,3 +28,9 @@ export const DetailsContainer = styled.div`
|
||||
overflow-y: auto;
|
||||
}
|
||||
`;
|
||||
|
||||
export const ScrollableDetailsContainer = styled(DetailsContainer)`
|
||||
pre {
|
||||
max-height: 300px;
|
||||
}
|
||||
`;
|
||||
|
||||
@ -4,7 +4,7 @@ import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import YAML from 'yamljs';
|
||||
|
||||
import { DetailsContainer, SectionBase, SectionHeader } from '@app/ingestV2/executions/components/BaseTab';
|
||||
import { ScrollableDetailsContainer, SectionBase, SectionHeader } from '@app/ingestV2/executions/components/BaseTab';
|
||||
import { StructuredReport, hasSomethingToShow } from '@app/ingestV2/executions/components/reporting/StructuredReport';
|
||||
import { EXECUTION_REQUEST_STATUS_SUCCESS } from '@app/ingestV2/executions/constants';
|
||||
import { TabType } from '@app/ingestV2/executions/types';
|
||||
@ -120,11 +120,11 @@ export const SummaryTab = ({
|
||||
</Tooltip>
|
||||
</ButtonGroup>
|
||||
</SectionSubHeader>
|
||||
<DetailsContainer>
|
||||
<ScrollableDetailsContainer>
|
||||
<Text size="sm">
|
||||
<pre>{logs}</pre>
|
||||
</Text>
|
||||
</DetailsContainer>
|
||||
</ScrollableDetailsContainer>
|
||||
</SectionBase>
|
||||
{recipe && (
|
||||
<SectionBase>
|
||||
@ -144,11 +144,11 @@ export const SummaryTab = ({
|
||||
</Tooltip>
|
||||
</ButtonGroup>
|
||||
</SectionSubHeader>
|
||||
<DetailsContainer>
|
||||
<ScrollableDetailsContainer>
|
||||
<Text size="sm">
|
||||
<pre>{recipe}</pre>
|
||||
</Text>
|
||||
</DetailsContainer>
|
||||
</ScrollableDetailsContainer>
|
||||
</SectionBase>
|
||||
)}
|
||||
</Section>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user