mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
style(database-modal): vertically align the button and the InfoTooltip icon (#36087)
This commit is contained in:
@@ -21,7 +21,7 @@ import { t } from '@superset-ui/core';
|
||||
import { SupersetTheme } from '@apache-superset/core/ui';
|
||||
import SupersetText from 'src/utils/textUtils';
|
||||
import { Input, Button } from '@superset-ui/core/components';
|
||||
import { StyledInputContainer, wideButton } from './styles';
|
||||
import { StyledInputContainer, wideButton, marginBottom } from './styles';
|
||||
import { DatabaseObject } from '../types';
|
||||
|
||||
const SqlAlchemyTab = ({
|
||||
@@ -102,7 +102,7 @@ const SqlAlchemyTab = ({
|
||||
loading={testInProgress}
|
||||
cta
|
||||
buttonStyle="link"
|
||||
css={(theme: SupersetTheme) => wideButton(theme)}
|
||||
css={(theme: SupersetTheme) => [wideButton(theme), marginBottom(theme)]}
|
||||
>
|
||||
{t('Test connection')}
|
||||
</Button>
|
||||
|
||||
@@ -106,6 +106,7 @@ export const infoTooltip = (theme: SupersetTheme) => css`
|
||||
margin-bottom: ${theme.sizeUnit * 0.25}px;
|
||||
}
|
||||
display: flex;
|
||||
align-items: center;
|
||||
`;
|
||||
|
||||
export const toggleStyle = (theme: SupersetTheme) => css`
|
||||
@@ -324,6 +325,7 @@ export const StyledAlignment = styled.div`
|
||||
|
||||
export const buttonLinkStyles = (theme: SupersetTheme) => css`
|
||||
text-transform: initial;
|
||||
padding: 0 ${theme.sizeUnit * 4}px;
|
||||
padding-right: ${theme.sizeUnit * 2}px;
|
||||
`;
|
||||
|
||||
@@ -335,8 +337,8 @@ export const importDbButtonLinkStyles = (theme: SupersetTheme) => css`
|
||||
|
||||
export const alchemyButtonLinkStyles = (theme: SupersetTheme) => css`
|
||||
text-transform: initial;
|
||||
padding: ${theme.sizeUnit * 8}px 0 0;
|
||||
margin-left: 0px;
|
||||
padding: 0 ${theme.sizeUnit * 2}px 0 0;
|
||||
`;
|
||||
|
||||
export const TabHeader = styled.div`
|
||||
|
||||
Reference in New Issue
Block a user