[APM] Db Flyout statement fix (#129387)

* fixes for i18 and overflow the code component

* fixed the code component and removed a console.log
This commit is contained in:
Boris Kirov 2022-04-04 21:02:05 +02:00 committed by GitHub
parent f41b53399c
commit 0caddf864e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View file

@ -32,7 +32,12 @@ export function SpanDatabase({ spanDb }: Props) {
</h3>
</EuiTitle>
<EuiSpacer size="s" />
<EuiCodeBlock language="sql" fontSize="m" paddingSize="m">
<EuiCodeBlock
language="sql"
fontSize="m"
paddingSize="m"
overflowHeight={150}
>
{spanDb.statement}
</EuiCodeBlock>
<EuiSpacer size="m" />

View file

@ -73,7 +73,10 @@ export function MetadataTable({ sections, isLoading }: Props) {
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiLink href={docLinks.links.apm.metaData} target="_blank">
<EuiIcon type="help" /> How to add labels and other data
<EuiIcon type="help" />
{i18n.translate('xpack.apm.metadata.help', {
defaultMessage: 'How to add labels and other data',
})}
</EuiLink>
</EuiFlexItem>
</EuiFlexGroup>