Skip to content

Commit c65bc88

Browse files
Fix styling
1 parent cbd7820 commit c65bc88

5 files changed

Lines changed: 16 additions & 8 deletions

File tree

x-pack/plugins/security_solution/public/common/components/drag_and_drop/draggable_wrapper.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ Wrapper.displayName = 'Wrapper';
7777
const ProviderContentWrapper = styled.span`
7878
> span.euiToolTipAnchor {
7979
display: block; /* allow EuiTooltip content to be truncatable */
80-
white-space: nowrap;
8180
}
8281
`;
8382

x-pack/plugins/security_solution/public/network/components/source_destination/source_destination_arrows.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ Percent.displayName = 'Percent';
3535

3636
const SourceDestinationArrowsContainer = styled(EuiFlexGroup)`
3737
margin: 0 2px;
38+
39+
.euiToolTipAnchor {
40+
white-space: nowrap;
41+
}
3842
`;
3943

4044
SourceDestinationArrowsContainer.displayName = 'SourceDestinationArrowsContainer';

x-pack/plugins/security_solution/public/timelines/components/row_renderers_browser/row_renderers_browser.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ const initialSorting = {
7272
},
7373
};
7474

75-
const StyledNameButton = styled.button``;
75+
const StyledNameButton = styled.button`
76+
text-align: left;
77+
`;
7678

7779
const RowRenderersBrowserComponent = React.forwardRef(
7880
({ excludedRowRendererIds = [], setExcludedRowRendererIds }: RowRenderersBrowserProps, ref) => {
@@ -92,7 +94,11 @@ const RowRenderersBrowserComponent = React.forwardRef(
9294
);
9395

9496
const nameColumnRenderCallback = useCallback(
95-
(value, item) => <StyledNameButton onClick={handleNameClick(item)}>{value}</StyledNameButton>,
97+
(value, item) => (
98+
<StyledNameButton className="kbn-resetFocusState" onClick={handleNameClick(item)}>
99+
{value}
100+
</StyledNameButton>
101+
),
96102
[handleNameClick]
97103
);
98104

x-pack/plugins/security_solution/public/timelines/components/timeline/body/actions/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ export const Actions = React.memo<Props>(
118118

119119
<EventsTd>
120120
<EventsTdContent textAlign="center" width={DEFAULT_ICON_BUTTON_WIDTH}>
121-
{loading && <EventsLoading />}
122-
123-
{!loading && (
121+
{loading ? (
122+
<EventsLoading />
123+
) : (
124124
<EuiButtonIcon
125125
aria-label={expanded ? i18n.COLLAPSE : i18n.EXPAND}
126126
data-test-subj="expand-event"

x-pack/plugins/security_solution/public/timelines/components/timeline/styles.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,5 @@ export const EventsHeadingHandle = styled.div.attrs(({ className = '' }) => ({
347347
*/
348348

349349
export const EventsLoading = styled(EuiLoadingSpinner)`
350-
margin: ${({ theme }) => theme.eui.euiSizeXS};
351-
vertical-align: top;
350+
vertical-align: middle;
352351
`;

0 commit comments

Comments
 (0)