fix: Floating Menu in SQL Left Bar (#13858)

* floating table git issue

* made changes

* floating table git issue

* made changes

* long table names

* floating table git issue

* made changes

* floating table git issue

* made changes

* long table names

* floating table git issue

* made changes

* floating table git issue

* made changes

* long table names

* table values

* aligned

* active key

* changed to customStyle

* update dropdown styles

Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
AAfghahi 2021-04-05 18:54:28 -04:00 committed by GitHub
parent d006178c03
commit f19f2c3ac8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 3 deletions

View File

@ -61,7 +61,7 @@ describe('DatasourceEditor', () => {
});
it('renders Tabs', () => {
expect(wrapper.find(Tabs)).toExist();
expect(wrapper.find('#table-tabs')).toExist();
});
it('makes an async request', () =>

View File

@ -300,6 +300,7 @@ div.Workspace {
.schemaPane-enter-done,
.schemaPane-exit {
transform: translateX(0);
z-index: 1020;
}
.schemaPane-exit-active {

View File

@ -79,6 +79,13 @@ const FlexRowContainer = styled.div`
}
`;
const StyledTableTabs = styled(Tabs)`
overflow: visible;
.ant-tabs-content-holder {
overflow: visible;
}
`;
const EditLockContainer = styled.div`
font-size: ${supersetTheme.typography.sizes.s}px;
display: flex;
@ -995,7 +1002,7 @@ class DatasourceEditor extends React.PureComponent {
</>
}
/>
<Tabs
<StyledTableTabs
fullWidth={false}
id="table-tabs"
data-test="edit-dataset-tabs"
@ -1086,7 +1093,7 @@ class DatasourceEditor extends React.PureComponent {
</Col>
</div>
</Tabs.TabPane>
</Tabs>
</StyledTableTabs>
</DatasourceContainer>
);
}

View File

@ -49,6 +49,10 @@ const StyledDatasourceModal = styled(Modal)`
.modal-footer {
flex: 0 1 auto;
}
.ant-modal-body {
overflow: visible;
}
`;
interface DatasourceModalProps {