mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-16 16:51:49 +08:00
[Fix]: Threshold in dashboard fixes (#3979)
* fix: the extra showcase for text and background * fix: css issue for select
This commit is contained in:
parent
9333fdcd0b
commit
dc7a55e871
@ -237,7 +237,7 @@ function Threshold({
|
||||
)}
|
||||
{isEditMode ? (
|
||||
<Select
|
||||
style={{ maxWidth: '200px', backgroundColor: '#141414' }}
|
||||
style={{ minWidth: '200px', backgroundColor: '#141414' }}
|
||||
bordered={false}
|
||||
defaultValue={unit}
|
||||
options={unitOptions}
|
||||
@ -253,22 +253,21 @@ function Threshold({
|
||||
<Space direction="vertical">
|
||||
<Typography.Text>Show with</Typography.Text>
|
||||
<Space>
|
||||
{isEditMode ? (
|
||||
{isEditMode && selectedGraph === PANEL_TYPES.TIME_SERIES ? (
|
||||
<ColorSelector setColor={setColor} thresholdColor={color} />
|
||||
) : (
|
||||
<ShowCaseValue width="100px" value={<CustomColor color={color} />} />
|
||||
)}
|
||||
{isEditMode && selectedGraph === PANEL_TYPES.VALUE ? (
|
||||
<>
|
||||
<Select
|
||||
style={{ minWidth: '100px' }}
|
||||
defaultValue={format}
|
||||
options={showAsOptions}
|
||||
onChange={handlerFormatChange}
|
||||
/>
|
||||
<ShowCaseValue width="100px" value={format} />
|
||||
</>
|
||||
) : null}
|
||||
<Select
|
||||
style={{ minWidth: '100px' }}
|
||||
defaultValue={format}
|
||||
options={showAsOptions}
|
||||
onChange={handlerFormatChange}
|
||||
/>
|
||||
) : (
|
||||
<ShowCaseValue width="100px" value={format} />
|
||||
)}
|
||||
</Space>
|
||||
</Space>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user