mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 09:29:04 +08:00
fix: make the entire row clickable in logs quick filters (#6574)
This commit is contained in:
parent
6384b25af3
commit
43f856c41b
@ -8,6 +8,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
.left-action {
|
.left-action {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -396,23 +396,22 @@ export default function CheckboxFilter(props: ICheckboxProps): JSX.Element {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="checkbox-filter">
|
<div className="checkbox-filter">
|
||||||
<section className="filter-header-checkbox">
|
<section
|
||||||
<section className="left-action">
|
className="filter-header-checkbox"
|
||||||
{isOpen ? (
|
|
||||||
<ChevronDown
|
|
||||||
size={13}
|
|
||||||
cursor="pointer"
|
|
||||||
onClick={(): void => {
|
onClick={(): void => {
|
||||||
|
if (isOpen) {
|
||||||
setIsOpen(false);
|
setIsOpen(false);
|
||||||
setVisibleItemsCount(10);
|
setVisibleItemsCount(10);
|
||||||
|
} else {
|
||||||
|
setIsOpen(true);
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
>
|
||||||
|
<section className="left-action">
|
||||||
|
{isOpen ? (
|
||||||
|
<ChevronDown size={13} cursor="pointer" />
|
||||||
) : (
|
) : (
|
||||||
<ChevronRight
|
<ChevronRight size={13} cursor="pointer" />
|
||||||
size={13}
|
|
||||||
onClick={(): void => setIsOpen(true)}
|
|
||||||
cursor="pointer"
|
|
||||||
/>
|
|
||||||
)}
|
)}
|
||||||
<Typography.Text className="title">{filter.title}</Typography.Text>
|
<Typography.Text className="title">{filter.title}</Typography.Text>
|
||||||
</section>
|
</section>
|
||||||
@ -420,7 +419,11 @@ export default function CheckboxFilter(props: ICheckboxProps): JSX.Element {
|
|||||||
{isOpen && (
|
{isOpen && (
|
||||||
<Typography.Text
|
<Typography.Text
|
||||||
className="clear-all"
|
className="clear-all"
|
||||||
onClick={handleClearFilterAttribute}
|
onClick={(e): void => {
|
||||||
|
e.stopPropagation();
|
||||||
|
e.preventDefault();
|
||||||
|
handleClearFilterAttribute();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
Clear All
|
Clear All
|
||||||
</Typography.Text>
|
</Typography.Text>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user