You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2021/05/12 00:31:42 UTC

[superset] 01/01: fix: Adding a little margin under the warning about changing datasets

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch space-under-dataset-change-warning
in repository https://gitbox.apache.org/repos/asf/superset.git

commit f21d7a5b108cd816f9b8f67ab14368fecfdb738f
Author: Evan Rusackas <ev...@preset.io>
AuthorDate: Tue May 11 17:30:20 2021 -0700

    fix: Adding a little margin under the warning about changing datasets
---
 superset-frontend/src/datasource/ChangeDatasourceModal.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/superset-frontend/src/datasource/ChangeDatasourceModal.tsx b/superset-frontend/src/datasource/ChangeDatasourceModal.tsx
index ff06b73..a71f4ea 100644
--- a/superset-frontend/src/datasource/ChangeDatasourceModal.tsx
+++ b/superset-frontend/src/datasource/ChangeDatasourceModal.tsx
@@ -25,7 +25,7 @@ import React, {
 } from 'react';
 import { FormControl, FormControlProps } from 'react-bootstrap';
 import Alert from 'src/components/Alert';
-import { SupersetClient, t, styled } from '@superset-ui/core';
+import { SupersetClient, t, styled, css } from '@superset-ui/core';
 import TableView, { EmptyWrapperType } from 'src/components/TableView';
 import StyledModal from 'src/components/Modal';
 import Button from 'src/components/Button';
@@ -248,6 +248,9 @@ const ChangeDatasourceModal: FunctionComponent<ChangeDatasourceModalProps> = ({
         {!confirmChange && (
           <>
             <Alert
+              css={theme => css`
+                margin-bottom: ${theme.gridUnit * 4}px;
+              `}
               type="warning"
               message={
                 <>