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
14 changes: 9 additions & 5 deletions src/components/Insights/InsightsCatalog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,15 @@ export const InsightsCatalog = (props: InsightsCatalogProps) => {
setSorting(val);
}}
options={[
{
value: SORTING_CRITERION.CRITICAL_INSIGHTS,
label: "Critical insights",
defaultOrder: SORTING_ORDER.DESC
},
...(defaultQuery.insightViewType === "Issues"
? [
{
value: SORTING_CRITERION.CRITICAL_INSIGHTS,
label: "Critical insights",
defaultOrder: SORTING_ORDER.DESC
}
]
: []),
{
value: SORTING_CRITERION.LATEST,
label: "Latest",
Expand Down
10 changes: 5 additions & 5 deletions src/components/Insights/common/InsightCard/Select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ export const Select = (props: SelectProps) => {
>
{selectedOption ? (
<Tooltip title={selectedOption.label}>
{selectedOption.customContent ? (
<>{selectedOption.customContent}</>
) : (
<s.SelectedValue>{selectedOption.label}</s.SelectedValue>
)}
<s.SelectedValue>
{selectedOption.customContent
? selectedOption.customContent
: selectedOption.label}
</s.SelectedValue>
</Tooltip>
) : (
props.placeholder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const SelectBar = styled.div<SelectBarProps>`
}
`;

export const SelectedValue = styled.span`
export const SelectedValue = styled.div`
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
Expand Down