Skip to content

Commit

Permalink
Fix share to space flyout sizing (#133949)
Browse files Browse the repository at this point in the history
  • Loading branch information
jportner authored Jun 9, 2022
1 parent 5d6e894 commit 17c2500
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,26 @@ export const AliasTable: FunctionComponent<Props> = ({ spaces, aliasesToDisable

return (
<>
<EuiCallOut
size="s"
title={
<EuiFlexItem grow={false}>
<EuiCallOut
size="s"
title={
<FormattedMessage
id="xpack.spaces.shareToSpace.aliasTableCalloutTitle"
defaultMessage="Legacy URL conflict"
/>
}
color="warning"
>
<FormattedMessage
id="xpack.spaces.shareToSpace.aliasTableCalloutTitle"
defaultMessage="Legacy URL conflict"
id="xpack.spaces.shareToSpace.aliasTableCalloutBody"
defaultMessage="{aliasesToDisableCount, plural, one {# legacy URL} other {# legacy URLs}} will be disabled."
values={{ aliasesToDisableCount }}
/>
}
color="warning"
>
<FormattedMessage
id="xpack.spaces.shareToSpace.aliasTableCalloutBody"
defaultMessage="{aliasesToDisableCount, plural, one {# legacy URL} other {# legacy URLs}} will be disabled."
values={{ aliasesToDisableCount }}
/>
</EuiCallOut>
</EuiCallOut>

<EuiSpacer size="m" />
<EuiSpacer size="m" />
</EuiFlexItem>

<EuiFlexItem>
<Suspense fallback={<EuiLoadingSpinner />}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const ShareModeControl = (props: Props) => {

const docLink = docLinks?.links.security.kibanaPrivileges;
return (
<>
<EuiFlexItem grow={false}>
<EuiCallOut
size="s"
iconType="help"
Expand Down Expand Up @@ -140,7 +140,7 @@ export const ShareModeControl = (props: Props) => {
</EuiCallOut>

<EuiSpacer size="m" />
</>
</EuiFlexItem>
);
};

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

import './share_to_space_form.scss';

import { EuiCallOut, EuiLink, EuiSpacer } from '@elastic/eui';
import React, { Fragment } from 'react';
import { EuiCallOut, EuiFlexItem, EuiLink, EuiSpacer } from '@elastic/eui';
import React from 'react';

import { FormattedMessage } from '@kbn/i18n-react';

Expand Down Expand Up @@ -47,7 +47,7 @@ export const ShareToSpaceForm = (props: Props) => {
onUpdate({ ...shareOptions, selectedSpaceIds });

const createCopyCallout = showCreateCopyCallout ? (
<Fragment>
<EuiFlexItem grow={false}>
<EuiCallOut
size="s"
title={
Expand Down Expand Up @@ -75,7 +75,7 @@ export const ShareToSpaceForm = (props: Props) => {
</EuiCallOut>

<EuiSpacer size="m" />
</Fragment>
</EuiFlexItem>
) : null;

return (
Expand Down

0 comments on commit 17c2500

Please sign in to comment.