Skip to content

Commit

Permalink
Merge pull request #1 from andreadelrio/doc-view-dsgn
Browse files Browse the repository at this point in the history
[Doc viewer] Design cleanups
  • Loading branch information
dimaanj authored Jun 17, 2021
2 parents 4305e42 + 986e719 commit ce4c4ee
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@

.kbnDocViewer__fieldNameCell {
width: 100%;
.dscMultiFieldBadge {
@include euiFont;
}
}

.kbnDocViewer__value {
line-height: $euiLineHeight;
}

.kbnDocViewer__warning {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,22 @@ export function FieldName({
</EuiFlexItem>
{isMultiField && (
<EuiFlexItem grow={false}>
<EuiBadge
color="default"
title={i18n.translate('discover.fieldChooser.discoverField.multiFieldTooltipContent', {
defaultMessage: 'Multi field',
})}
<EuiToolTip
position="top"
content={i18n.translate(
'discover.fieldChooser.discoverField.multiFieldTooltipContent',
{
defaultMessage: 'Multifields can have multiple values per field',
})
}
>
<FormattedMessage
id="discover.fieldChooser.discoverField.multiField"
defaultMessage="multifield"
/>
</EuiBadge>
<EuiBadge title="" className="dscMultiFieldBadge" color="default">
<FormattedMessage
id="discover.fieldChooser.discoverField.multiField"
defaultMessage="multifield"
/>
</EuiBadge>
</EuiToolTip>
</EuiFlexItem>
)}
</EuiFlexGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const DOC_VIEW_COLUMNS: Array<EuiBasicTableColumn<FieldRecord>> = [
<strong>
<FormattedMessage
id="discover.fieldChooser.discoverField.action"
defaultMessage="Action"
defaultMessage="Actions"
/>
</strong>
</EuiText>
Expand Down

0 comments on commit ce4c4ee

Please sign in to comment.