Skip to content

Commit

Permalink
[Data Explorer][Discover 2.0] Append popout icon to oui link for doc …
Browse files Browse the repository at this point in the history
…viewer links

Issue Resolve
opensearch-project#4825

Signed-off-by: ananzh <[email protected]>
  • Loading branch information
ananzh committed Aug 30, 2023
1 parent 2738131 commit 1d981e1
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import React from 'react';
import { EuiFlexGroup, EuiFlexItem, EuiListGroupItem, EuiListGroupItemProps } from '@elastic/eui';
import { EuiFlexGroup, EuiFlexItem, EuiListGroupItemProps, EuiLink } from '@elastic/eui';
import { getDocViewsLinksRegistry } from '../../../opensearch_dashboards_services';
import { DocViewLinkRenderProps } from '../../doc_views_links/doc_views_links_types';

Expand All @@ -24,10 +24,12 @@ export function DocViewerLinks(renderProps: DocViewLinkRenderProps) {
});

return (
<EuiFlexGroup gutterSize="xs" justifyContent="flexEnd">
<EuiFlexGroup gutterSize="m" justifyContent="flexEnd">
{listItems.map((item, index) => (
<EuiFlexItem key={index} grow={false}>
<EuiListGroupItem {...item} />
<EuiLink href={item.href} target="_blank" style={{ fontWeight: 'normal' }}>
{item.label}
</EuiLink>
</EuiFlexItem>
))}
</EuiFlexGroup>
Expand Down

0 comments on commit 1d981e1

Please sign in to comment.