Skip to content

Commit

Permalink
Feature/294 styling issues (opensearch-project#322)
Browse files Browse the repository at this point in the history
* rule details tags and references cut off

Signed-off-by: Aleksandar Djindjic <[email protected]>

* smaller spacing between rule tags

Signed-off-by: Aleksandar Djindjic <[email protected]>

Signed-off-by: Aleksandar Djindjic <[email protected]>
  • Loading branch information
djindjic authored Jan 10, 2023
1 parent 05c2b26 commit 304e302
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,12 @@ export const RuleContentViewer: React.FC<RuleContentViewerProps> = ({

<EuiFormLabel>Tags</EuiFormLabel>
{ruleData.tags.length > 0 ? (
<EuiFlexGroup direction="row" data-test-subj={'rule_flyout_rule_tags'}>
<EuiFlexGroup
direction="row"
wrap
gutterSize="s"
data-test-subj={'rule_flyout_rule_tags'}
>
{ruleData.tags.map((tag: any, i: number) => (
<EuiFlexItem grow={false} key={i}>
<EuiBadge color={'#DDD'}>{tag.value}</EuiBadge>
Expand All @@ -140,7 +145,7 @@ export const RuleContentViewer: React.FC<RuleContentViewerProps> = ({
<EuiFormLabel>References</EuiFormLabel>
{ruleData.references.length > 0 ? (
ruleData.references.map((reference: any, i: number) => (
<div key={i}>
<div key={i} className="eui-textTruncate">
<EuiLink
href={reference.value}
target="_blank"
Expand Down

0 comments on commit 304e302

Please sign in to comment.