mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[APM] Custom links submit button is off screen in IE11 (#63122)
This commit is contained in:
parent
97d1685c3d
commit
83b9417d45
2 changed files with 18 additions and 22 deletions
|
@ -8,6 +8,7 @@ import { EuiButtonEmpty } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { NotificationsStart } from 'kibana/public';
|
||||
import React, { useState } from 'react';
|
||||
import { px, unit } from '../../../../../../style/variables';
|
||||
import { callApmApi } from '../../../../../../services/rest/createCallApmApi';
|
||||
import { useApmPluginContext } from '../../../../../../hooks/useApmPluginContext';
|
||||
|
||||
|
@ -31,6 +32,7 @@ export function DeleteButton({ onDelete, customLinkId }: Props) {
|
|||
setIsDeleting(false);
|
||||
onDelete();
|
||||
}}
|
||||
style={{ marginRight: px(unit) }}
|
||||
>
|
||||
{i18n.translate('xpack.apm.settings.customizeUI.customLink.delete', {
|
||||
defaultMessage: 'Delete'
|
||||
|
|
|
@ -40,29 +40,23 @@ export const FlyoutFooter = ({
|
|||
)}
|
||||
</EuiButtonEmpty>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiFlexGroup>
|
||||
{customLinkId && (
|
||||
<EuiFlexItem>
|
||||
<DeleteButton customLinkId={customLinkId} onDelete={onDelete} />
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem grow={false} style={{ display: 'block' }}>
|
||||
{customLinkId && (
|
||||
<DeleteButton customLinkId={customLinkId} onDelete={onDelete} />
|
||||
)}
|
||||
<EuiButton
|
||||
fill
|
||||
type="submit"
|
||||
isLoading={isSaving}
|
||||
isDisabled={!isSaveButtonEnabled}
|
||||
>
|
||||
{i18n.translate(
|
||||
'xpack.apm.settings.customizeUI.customLink.flyout.save',
|
||||
{
|
||||
defaultMessage: 'Save'
|
||||
}
|
||||
)}
|
||||
<EuiFlexItem>
|
||||
<EuiButton
|
||||
fill
|
||||
type="submit"
|
||||
isLoading={isSaving}
|
||||
isDisabled={!isSaveButtonEnabled}
|
||||
>
|
||||
{i18n.translate(
|
||||
'xpack.apm.settings.customizeUI.customLink.flyout.save',
|
||||
{
|
||||
defaultMessage: 'Save'
|
||||
}
|
||||
)}
|
||||
</EuiButton>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
</EuiButton>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
</EuiFlyoutFooter>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue