Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Jul 10, 2020
1 parent cbd7820 commit c65bc88
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ Wrapper.displayName = 'Wrapper';
const ProviderContentWrapper = styled.span`
> span.euiToolTipAnchor {
display: block; /* allow EuiTooltip content to be truncatable */
white-space: nowrap;
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ Percent.displayName = 'Percent';

const SourceDestinationArrowsContainer = styled(EuiFlexGroup)`
margin: 0 2px;
.euiToolTipAnchor {
white-space: nowrap;
}
`;

SourceDestinationArrowsContainer.displayName = 'SourceDestinationArrowsContainer';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ const initialSorting = {
},
};

const StyledNameButton = styled.button``;
const StyledNameButton = styled.button`
text-align: left;
`;

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

const nameColumnRenderCallback = useCallback(
(value, item) => <StyledNameButton onClick={handleNameClick(item)}>{value}</StyledNameButton>,
(value, item) => (
<StyledNameButton className="kbn-resetFocusState" onClick={handleNameClick(item)}>
{value}
</StyledNameButton>
),
[handleNameClick]
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ export const Actions = React.memo<Props>(

<EventsTd>
<EventsTdContent textAlign="center" width={DEFAULT_ICON_BUTTON_WIDTH}>
{loading && <EventsLoading />}

{!loading && (
{loading ? (
<EventsLoading />
) : (
<EuiButtonIcon
aria-label={expanded ? i18n.COLLAPSE : i18n.EXPAND}
data-test-subj="expand-event"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,5 @@ export const EventsHeadingHandle = styled.div.attrs(({ className = '' }) => ({
*/

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

0 comments on commit c65bc88

Please sign in to comment.