Skip to content

Commit 36d2e87

Browse files
Fix share to space flyout sizing (#133949) (#133985)
(cherry picked from commit 17c2500) Co-authored-by: Joe Portner <[email protected]>
1 parent 768254c commit 36d2e87

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

x-pack/plugins/spaces/public/share_saved_objects_to_space/components/alias_table.tsx

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,26 @@ export const AliasTable: FunctionComponent<Props> = ({ spaces, aliasesToDisable
5555

5656
return (
5757
<>
58-
<EuiCallOut
59-
size="s"
60-
title={
58+
<EuiFlexItem grow={false}>
59+
<EuiCallOut
60+
size="s"
61+
title={
62+
<FormattedMessage
63+
id="xpack.spaces.shareToSpace.aliasTableCalloutTitle"
64+
defaultMessage="Legacy URL conflict"
65+
/>
66+
}
67+
color="warning"
68+
>
6169
<FormattedMessage
62-
id="xpack.spaces.shareToSpace.aliasTableCalloutTitle"
63-
defaultMessage="Legacy URL conflict"
70+
id="xpack.spaces.shareToSpace.aliasTableCalloutBody"
71+
defaultMessage="{aliasesToDisableCount, plural, one {# legacy URL} other {# legacy URLs}} will be disabled."
72+
values={{ aliasesToDisableCount }}
6473
/>
65-
}
66-
color="warning"
67-
>
68-
<FormattedMessage
69-
id="xpack.spaces.shareToSpace.aliasTableCalloutBody"
70-
defaultMessage="{aliasesToDisableCount, plural, one {# legacy URL} other {# legacy URLs}} will be disabled."
71-
values={{ aliasesToDisableCount }}
72-
/>
73-
</EuiCallOut>
74+
</EuiCallOut>
7475

75-
<EuiSpacer size="m" />
76+
<EuiSpacer size="m" />
77+
</EuiFlexItem>
7678

7779
<EuiFlexItem>
7880
<Suspense fallback={<EuiLoadingSpinner />}>

x-pack/plugins/spaces/public/share_saved_objects_to_space/components/share_mode_control.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const ShareModeControl = (props: Props) => {
110110

111111
const docLink = docLinks?.links.security.kibanaPrivileges;
112112
return (
113-
<>
113+
<EuiFlexItem grow={false}>
114114
<EuiCallOut
115115
size="s"
116116
iconType="help"
@@ -140,7 +140,7 @@ export const ShareModeControl = (props: Props) => {
140140
</EuiCallOut>
141141

142142
<EuiSpacer size="m" />
143-
</>
143+
</EuiFlexItem>
144144
);
145145
};
146146

x-pack/plugins/spaces/public/share_saved_objects_to_space/components/share_to_space_form.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
import './share_to_space_form.scss';
99

10-
import { EuiCallOut, EuiLink, EuiSpacer } from '@elastic/eui';
11-
import React, { Fragment } from 'react';
10+
import { EuiCallOut, EuiFlexItem, EuiLink, EuiSpacer } from '@elastic/eui';
11+
import React from 'react';
1212

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

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

4949
const createCopyCallout = showCreateCopyCallout ? (
50-
<Fragment>
50+
<EuiFlexItem grow={false}>
5151
<EuiCallOut
5252
size="s"
5353
title={
@@ -75,7 +75,7 @@ export const ShareToSpaceForm = (props: Props) => {
7575
</EuiCallOut>
7676

7777
<EuiSpacer size="m" />
78-
</Fragment>
78+
</EuiFlexItem>
7979
) : null;
8080

8181
return (

0 commit comments

Comments
 (0)