fix(explore): metrics caret not expanding in datasource panel (#12305)

* Closes #12233

* Remove accordion and set both sections open
This commit is contained in:
Geido 2021-01-07 07:48:22 +01:00 committed by GitHub
parent 506edf432d
commit 4e6613d11f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -119,7 +119,10 @@ const DatasourceContainer = styled.div`
padding: 0px;
}
.field-selections {
padding: ${({ theme }) => 2 * theme.gridUnit}px;
padding: ${({ theme }) =>
`${2 * theme.gridUnit}px ${2 * theme.gridUnit}px ${
4 * theme.gridUnit
}px`};
overflow: auto;
}
.field-length {
@ -187,7 +190,6 @@ const DataSourcePanel = ({
placeholder={t('Search Metrics & Columns')}
/>
<Collapse
accordion
bordered={false}
defaultActiveKey={['column', 'metrics']}
expandIconPosition="right"
@ -205,8 +207,6 @@ const DataSourcePanel = ({
</div>
))}
</Collapse.Panel>
</Collapse>
<Collapse accordion bordered={false} expandIconPosition="right">
<Collapse.Panel
header={<span className="header">{t('Metrics')}</span>}
key="metrics"