mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-25 19:40:24 +00:00
feat: remove card container above where clause
This commit is contained in:
parent
2520718afb
commit
e2e535eaca
@ -601,32 +601,30 @@ function CodeMirrorWhereClause(): JSX.Element {
|
||||
|
||||
return (
|
||||
<div className="code-mirror-where-clause">
|
||||
<Card className="code-mirror-card">
|
||||
<CodeMirror
|
||||
value={query}
|
||||
theme={copilot}
|
||||
onChange={handleChange}
|
||||
onUpdate={handleUpdate}
|
||||
autoFocus
|
||||
placeholder="Enter your query (e.g., status = 'error' AND service = 'frontend')"
|
||||
extensions={[
|
||||
autocompletion({
|
||||
override: [myCompletions],
|
||||
defaultKeymap: true,
|
||||
closeOnBlur: false,
|
||||
activateOnTyping: true,
|
||||
maxRenderedOptions: 50,
|
||||
}),
|
||||
javascript({ jsx: false, typescript: false }),
|
||||
EditorView.lineWrapping,
|
||||
stopEventsExtension,
|
||||
// customTheme,
|
||||
]}
|
||||
basicSetup={{
|
||||
lineNumbers: false,
|
||||
}}
|
||||
/>
|
||||
</Card>
|
||||
<CodeMirror
|
||||
value={query}
|
||||
theme={copilot}
|
||||
onChange={handleChange}
|
||||
onUpdate={handleUpdate}
|
||||
autoFocus
|
||||
placeholder="Enter your query (e.g., status = 'error' AND service = 'frontend')"
|
||||
extensions={[
|
||||
autocompletion({
|
||||
override: [myCompletions],
|
||||
defaultKeymap: true,
|
||||
closeOnBlur: false,
|
||||
activateOnTyping: true,
|
||||
maxRenderedOptions: 50,
|
||||
}),
|
||||
javascript({ jsx: false, typescript: false }),
|
||||
EditorView.lineWrapping,
|
||||
stopEventsExtension,
|
||||
// customTheme,
|
||||
]}
|
||||
basicSetup={{
|
||||
lineNumbers: false,
|
||||
}}
|
||||
/>
|
||||
|
||||
{query && (
|
||||
<Card size="small">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user