From ad7c0e7e50dd199faad8dd2eb1e68245110d2d07 Mon Sep 17 00:00:00 2001 From: Corey Robertson Date: Mon, 13 Jan 2020 12:58:55 -0500 Subject: [PATCH 1/2] Backport #34666 --- .../canvas/public/components/asset_manager/asset_manager.scss | 2 +- .../canvas/public/components/asset_manager/asset_modal.tsx | 4 ++-- .../canvas/public/components/workpad_templates/index.js | 2 +- x-pack/legacy/plugins/canvas/public/state/defaults.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/x-pack/legacy/plugins/canvas/public/components/asset_manager/asset_manager.scss b/x-pack/legacy/plugins/canvas/public/components/asset_manager/asset_manager.scss index e3d286bf4c5d8..5b281129f533f 100644 --- a/x-pack/legacy/plugins/canvas/public/components/asset_manager/asset_manager.scss +++ b/x-pack/legacy/plugins/canvas/public/components/asset_manager/asset_manager.scss @@ -34,7 +34,7 @@ .canvasAssetManager__emptyPanel { max-width: 400px; - margin: 0 auto; + margin: $euiSizeXL auto 0; } } diff --git a/x-pack/legacy/plugins/canvas/public/components/asset_manager/asset_modal.tsx b/x-pack/legacy/plugins/canvas/public/components/asset_manager/asset_modal.tsx index f8bce19a46968..45d846a72ccd6 100644 --- a/x-pack/legacy/plugins/canvas/public/components/asset_manager/asset_modal.tsx +++ b/x-pack/legacy/plugins/canvas/public/components/asset_manager/asset_modal.tsx @@ -70,13 +70,13 @@ export const AssetModal: FunctionComponent = props => { const percentageUsed = Math.round((assetsTotal / ASSET_MAX_SIZE) * 100); const emptyAssets = ( - +
{strings.getEmptyAssetsDescription()}} titleSize="xs" /> - +
); return ( diff --git a/x-pack/legacy/plugins/canvas/public/components/workpad_templates/index.js b/x-pack/legacy/plugins/canvas/public/components/workpad_templates/index.js index 761417f60d87c..cf07d1ed229f0 100644 --- a/x-pack/legacy/plugins/canvas/public/components/workpad_templates/index.js +++ b/x-pack/legacy/plugins/canvas/public/components/workpad_templates/index.js @@ -23,7 +23,7 @@ export const WorkpadTemplates = compose( // Clone workpad given an id cloneWorkpad: props => workpad => { workpad.id = getId('workpad'); - workpad.name = `Untitled Workpad - ${workpad.name}`; + workpad.name = `My Canvas Workpad - ${workpad.name}`; workpad.tags = undefined; return workpadService .create(workpad) diff --git a/x-pack/legacy/plugins/canvas/public/state/defaults.js b/x-pack/legacy/plugins/canvas/public/state/defaults.js index 203523936ffa7..13ff7102bcafe 100644 --- a/x-pack/legacy/plugins/canvas/public/state/defaults.js +++ b/x-pack/legacy/plugins/canvas/public/state/defaults.js @@ -42,7 +42,7 @@ export const getDefaultPage = () => { export const getDefaultWorkpad = () => { const page = getDefaultPage(); return { - name: 'Untitled Workpad', + name: 'My Canvas Workpad', id: getId('workpad'), width: 1080, height: 720, From b988240a2c2c83bff0a9e5b65db6097d51278c8d Mon Sep 17 00:00:00 2001 From: Corey Robertson Date: Mon, 13 Jan 2020 13:40:48 -0500 Subject: [PATCH 2/2] Fix type check --- .../canvas/public/components/asset_manager/asset_modal.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/x-pack/legacy/plugins/canvas/public/components/asset_manager/asset_modal.tsx b/x-pack/legacy/plugins/canvas/public/components/asset_manager/asset_modal.tsx index 45d846a72ccd6..3c86001d22792 100644 --- a/x-pack/legacy/plugins/canvas/public/components/asset_manager/asset_modal.tsx +++ b/x-pack/legacy/plugins/canvas/public/components/asset_manager/asset_modal.tsx @@ -17,7 +17,6 @@ import { EuiModalHeader, EuiModalHeaderTitle, EuiOverlayMask, - EuiPanel, EuiProgress, EuiSpacer, EuiText,