Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { RefObject, useEffect, useRef, KeyboardEvent } from 'react';

import { useSelector } from 'react-redux';
import { t, useTheme } from '@superset-ui/core';
import { Popover } from '@superset-ui/core/components';
import { List, Popover } from '@superset-ui/core/components';
import {
FiltersContainer,
FiltersDetailsContainer,
Expand Down Expand Up @@ -158,14 +158,19 @@ const DetailsPanelPopover = ({
{t('Applied filters (%d)', appliedIndicators.length)}
</SectionName>
<FiltersContainer>
{appliedIndicators.map(indicator => (
<FilterIndicator
ref={el => indicatorRefs.current.push(el)}
key={indicatorKey(indicator)}
indicator={indicator}
onClick={onHighlightFilterSource}
/>
))}
<List
dataSource={appliedIndicators}
Comment thread
msyavuz marked this conversation as resolved.
renderItem={indicator => (
<List.Item>
<FilterIndicator
ref={el => indicatorRefs.current.push(el)}
key={indicatorKey(indicator)}
indicator={indicator}
onClick={onHighlightFilterSource}
/>
</List.Item>
)}
/>
</FiltersContainer>
</div>
) : null}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const FilterItem = styled.button`

export const FiltersContainer = styled.div`
${({ theme }) => css`
max-height: 60vh;
Comment thread
msyavuz marked this conversation as resolved.
margin-top: ${theme.sizeUnit}px;
&:not(:last-child) {
padding-bottom: ${theme.sizeUnit * 3}px;
Expand All @@ -116,7 +117,7 @@ export const FiltersDetailsContainer = styled.div`
max-width: 300px;
overflow-x: hidden;

color: ${theme.colorBgBase};
color: ${theme.colorText};
`}
`;

Expand Down
Loading