From 7da9a63ef654e5b4cd4f4811a556e5ba60d2faeb Mon Sep 17 00:00:00 2001 From: Scott Dickerson Date: Wed, 9 Dec 2020 13:29:05 -0600 Subject: [PATCH] fix(dashboardeditor): add padding around skeletontext in loading --- .../DashboardEditor/DashboardEditor.jsx | 13 +++++-------- .../DashboardEditor.story.storyshot | 18 +++++++++++------- .../DashboardEditor/_dashboard-editor.scss | 4 ++++ 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/src/components/DashboardEditor/DashboardEditor.jsx b/src/components/DashboardEditor/DashboardEditor.jsx index c3a499527e..368cc37451 100644 --- a/src/components/DashboardEditor/DashboardEditor.jsx +++ b/src/components/DashboardEditor/DashboardEditor.jsx @@ -1,6 +1,6 @@ import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; -import { InlineNotification } from 'carbon-components-react'; +import { InlineNotification, SkeletonText } from 'carbon-components-react'; import isNil from 'lodash/isNil'; import classnames from 'classnames'; import update from 'immutability-helper'; @@ -11,12 +11,7 @@ import { CARD_ACTIONS, CARD_TYPES, } from '../../constants/LayoutConstants'; -import { - DashboardGrid, - CardEditor, - ErrorBoundary, - SkeletonText, -} from '../../index'; +import { DashboardGrid, CardEditor, ErrorBoundary } from '../../index'; import ImageGalleryModal, { ImagePropTypes, } from '../ImageGalleryModal/ImageGalleryModal'; @@ -394,7 +389,9 @@ const DashboardEditor = ({ }); return isLoading ? ( - +
+ +
) : (
-

+

+ /> +