Skip to content

Commit

Permalink
[Fleet] Remove unwanted overflow on Integrations screenshots (#124975) (
Browse files Browse the repository at this point in the history
#124995)

(cherry picked from commit 30350fc)

Co-authored-by: Cristina Amico <criamico@users.noreply.github.com>
  • Loading branch information
kibanamachine and criamico authored Feb 8, 2022
1 parent 3f90733 commit a605c00
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 a605c00

Please sign in to comment.