Skip to content

Commit

Permalink
[7.8] [Uptime] Improve overview and details page responsiveness (elas…
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 authored May 14, 2020
1 parent 8890ac9 commit e71e784
Show file tree
Hide file tree
Showing 13 changed files with 345 additions and 265 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ const MapPanel = styled.div`

const EuiFlexItemTags = styled(EuiFlexItem)`
padding-top: 5px;
@media (max-width: 850px) {
@media (max-width: 1042px) {
flex-basis: 80% !important;
flex-grow: 0 !important;
order: 1;
}
`;
Expand Down Expand Up @@ -75,7 +77,7 @@ export const LocationMap = ({ monitorLocations }: LocationMapProps) => {

return (
<EuiErrorBoundary>
<FlexGroup wrap={true} gutterSize="none">
<FlexGroup wrap={true} gutterSize="none" justifyContent="flexEnd">
<EuiFlexItemTags>
<LocationStatusTags locations={monitorLocations?.locations || []} />
</EuiFlexItemTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const TextStyle = styled.div`
const BadgeItem = styled.div`
margin-bottom: 5px;
white-space: nowrap;
@media (max-width: 830px) {
@media (max-width: 1042px) {
display: inline-block;
margin-right: 16px;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export const MonitorSSLCertificate = ({ tls }: Props) => {
<>
<EuiText>
{i18n.translate('xpack.uptime.monitorStatusBar.sslCertificate.title', {
defaultMessage: 'Certificate',
defaultMessage: 'Certificate:',
})}
</EuiText>
<EuiSpacer size="s" />
<EuiFlexGroup>
<EuiFlexGroup wrap>
<EuiFlexItem grow={false}>
<EuiText
className="eui-displayInline"
Expand Down Expand Up @@ -87,7 +87,7 @@ export const MonitorSSLCertificate = ({ tls }: Props) => {
</EuiFlexItem>
<EuiFlexItem>
<Link to={CERTIFICATES_ROUTE} className="eui-displayInline">
<EuiText>
<EuiText style={{ whiteSpace: 'nowrap' }}>
{i18n.translate('xpack.uptime.monitorStatusBar.sslCertificate.overview', {
defaultMessage: 'Certificate overview',
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ interface MonitorStatusDetailsProps {
}

const WrapFlexItem = styled(EuiFlexItem)`
@media (max-width: 1150px) {
width: 100%;
&&& {
@media (max-width: 768px) {
width: 100%;
}
@media (max-width: 1042px) {
flex-basis: 520px;
}
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import React, { useState } from 'react';
import { EuiFilterGroup } from '@elastic/eui';
import styled from 'styled-components';
import { FilterPopoverProps, FilterPopover } from './filter_popover';
import { OverviewFilters } from '../../../../common/runtime_types/overview_filters';
import { filterLabels } from './translations';
Expand All @@ -16,6 +17,10 @@ interface PresentationalComponentProps {
overviewFilters: OverviewFilters;
}

const Container = styled(EuiFilterGroup)`
margin-bottom: 10px;
`;

export const FilterGroupComponent: React.FC<PresentationalComponentProps> = ({
overviewFilters,
loading,
Expand Down Expand Up @@ -79,10 +84,10 @@ export const FilterGroupComponent: React.FC<PresentationalComponentProps> = ({
];

return (
<EuiFilterGroup>
<Container>
{filterPopoverProps.map(item => (
<FilterPopover key={item.id} {...item} />
))}
</EuiFilterGroup>
</Container>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
} from '../../../../../../../src/plugins/data/public';

const Container = styled.div`
margin-bottom: 10px;
margin-bottom: 4px;
`;

interface State {
Expand Down
Loading

0 comments on commit e71e784

Please sign in to comment.