Skip to content

Commit

Permalink
Vertically aligned rows in columns tab
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Dec 22, 2021
1 parent 31cd8f4 commit d9a2fad
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions superset-frontend/src/components/Datasource/DatasourceEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ const StyledLabelWrapper = styled.div`
}
`;

const StyledColumnsTabWrapper = styled.div`
.table > tbody > tr > td {
vertical-align: middle;
}
.ant-tag {
margin-top: ${({ theme }) => theme.gridUnit}px;
}
`;

const checkboxGenerator = (d, onChange) => (
<CheckboxControl value={d} onChange={onChange} />
);
Expand Down Expand Up @@ -1206,7 +1216,7 @@ class DatasourceEditor extends React.PureComponent {
}
key={2}
>
<div>
<StyledColumnsTabWrapper>
<ColumnButtonWrapper>
<span className="m-t-10 m-r-10">
<Button
Expand All @@ -1230,7 +1240,7 @@ class DatasourceEditor extends React.PureComponent {
}
/>
{this.state.metadataLoading && <Loading />}
</div>
</StyledColumnsTabWrapper>
</Tabs.TabPane>
<Tabs.TabPane
tab={
Expand Down

0 comments on commit d9a2fad

Please sign in to comment.