fix: double scroll bars on dataset editor (#11095)

* fix double scroll bar on dataset editor

* add table name to virtual tab
This commit is contained in:
Lily Kuang
2020-09-28 19:28:27 -07:00
committed by GitHub
parent 79de8f7e37
commit 8b458ac172
2 changed files with 37 additions and 8 deletions

View File

@@ -46,11 +46,6 @@ import Field from 'src/CRUD/Field';
import withToasts from 'src/messageToasts/enhancers/withToasts';
const DatasourceContainer = styled.div`
.tab-content {
height: 600px;
overflow: auto;
}
.change-warning {
margin: 16px 10px 0;
color: ${({ theme }) => theme.colors.warning.base};
@@ -656,6 +651,19 @@ class DatasourceEditor extends React.PureComponent {
/>
}
/>
<Field
fieldKey="table_name"
label={t('table name')}
control={
<TextControl
controlId="table_name"
onChange={table => {
this.onDatasourcePropChange('table_name', table);
}}
placeholder={t('Type table name')}
/>
}
/>
<Field
fieldKey="sql"
label={t('SQL')}