Skip to content

Commit

Permalink
[Fleet] Remove unwanted overflow on Integrations screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
criamico committed Feb 8, 2022
1 parent 28d8bc8 commit bc561ed
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* 2.0.
*/
import React, { useState, useMemo, memo } from 'react';
import styled from 'styled-components';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n-react';
import { EuiFlexGroup, EuiFlexItem, EuiImage, EuiText, EuiPagination } from '@elastic/eui';
Expand All @@ -17,6 +18,9 @@ interface ScreenshotProps {
packageName: string;
version: string;
}
const Pagination = styled(EuiPagination)`
max-width: 130px;
`;

export const Screenshots: React.FC<ScreenshotProps> = memo(({ images, packageName, version }) => {
const { toPackageImage } = useLinks();
Expand Down Expand Up @@ -48,7 +52,7 @@ export const Screenshots: React.FC<ScreenshotProps> = memo(({ images, packageNam
</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiPagination
<Pagination
aria-label={i18n.translate('xpack.fleet.epm.screenshotPaginationAriaLabel', {
defaultMessage: '{packageName} screenshot pagination',
values: {
Expand Down

0 comments on commit bc561ed

Please sign in to comment.