Skip to content

Commit

Permalink
chore: Remove crud.less from Datasource (apache#19438)
Browse files Browse the repository at this point in the history
* Remove crud less

* Remove unused classname

* Remove unused import

* Add theme top level
  • Loading branch information
geido authored and philipher29 committed Jun 9, 2022
1 parent 99a0683 commit 9e9baec
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 59 deletions.
26 changes: 22 additions & 4 deletions superset-frontend/src/components/Datasource/CollectionTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import Button from 'src/components/Button';
import Icons from 'src/components/Icons';
import Fieldset from './Fieldset';
import { recurseReactClone } from './utils';
import './crud.less';

interface CRUDCollectionProps {
allowAddItem?: boolean;
Expand Down Expand Up @@ -102,9 +101,28 @@ const CrudTableWrapper = styled.div<{ stickyHeader?: boolean }>`
min
}
`}
th span {
vertical-align: ${({ theme }) => theme.gridUnit * -2}px;
}
${({ theme }) => `
th span {
vertical-align: ${theme.gridUnit * -2}px;
}
.text-right {
text-align: right;
}
.empty-collection {
padding: ${theme.gridUnit * 2 + 2}px;
}
.tiny-cell {
width: ${theme.gridUnit + 1}px;
}
i.fa-caret-down,
i.fa-caret-up {
width: ${theme.gridUnit + 1}px;
}
td.expanded {
border-top: 0;
padding: 0;
}
`}
`;

const CrudButtonWrapper = styled.div`
Expand Down
1 change: 0 additions & 1 deletion superset-frontend/src/components/Datasource/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import React, { useCallback } from 'react';
import { css, SupersetTheme } from '@superset-ui/core';
import { Tooltip } from 'src/components/Tooltip';
import { FormItem, FormLabel } from 'src/components/Form';
import './crud.less';

const formItemInlineCss = css`
.ant-form-item-control-input-content {
Expand Down
54 changes: 0 additions & 54 deletions superset-frontend/src/components/Datasource/crud.less

This file was deleted.

0 comments on commit 9e9baec

Please sign in to comment.