mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 05:15:57 +08:00
fix: button visibility in clickhouse and promQL headers (#4390)
This commit is contained in:
parent
f99da73098
commit
26d6a869c6
@ -30,11 +30,10 @@ function QueryHeader({
|
|||||||
const [collapse, setCollapse] = useState(false);
|
const [collapse, setCollapse] = useState(false);
|
||||||
return (
|
return (
|
||||||
<QueryWrapper>
|
<QueryWrapper>
|
||||||
<Row style={{ justifyContent: 'space-between' }}>
|
<Row style={{ justifyContent: 'space-between', marginBottom: '1rem' }}>
|
||||||
<Row>
|
<Row>
|
||||||
<Button
|
<Button
|
||||||
type="default"
|
type="default"
|
||||||
ghost
|
|
||||||
icon={disabled ? <EyeInvisibleFilled /> : <EyeFilled />}
|
icon={disabled ? <EyeInvisibleFilled /> : <EyeFilled />}
|
||||||
onClick={onDisable}
|
onClick={onDisable}
|
||||||
>
|
>
|
||||||
@ -42,7 +41,6 @@ function QueryHeader({
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
type="default"
|
type="default"
|
||||||
ghost
|
|
||||||
icon={collapse ? <RightOutlined /> : <DownOutlined />}
|
icon={collapse ? <RightOutlined /> : <DownOutlined />}
|
||||||
onClick={(): void => setCollapse(!collapse)}
|
onClick={(): void => setCollapse(!collapse)}
|
||||||
/>
|
/>
|
||||||
@ -51,7 +49,6 @@ function QueryHeader({
|
|||||||
{deletable && (
|
{deletable && (
|
||||||
<Button
|
<Button
|
||||||
type="default"
|
type="default"
|
||||||
ghost
|
|
||||||
danger
|
danger
|
||||||
icon={<DeleteOutlined />}
|
icon={<DeleteOutlined />}
|
||||||
onClick={onDelete}
|
onClick={onDelete}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user