Skip to content

Commit 7c51861

Browse files
committed
Make button look like other Grafana buttons
1 parent 6b16e7d commit 7c51861

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/components/App/ObservabilityQueryLanguageComponent.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { Editor } from "../editor/Editor";
66
import { TableDefinition, TableDefinitionResponse, TabularResult } from "../../lib/types";
77
import { getBackendSrv } from '@grafana/runtime';
88
import { TimeSeriesChart } from "../charts/TimeSeriesChart";
9-
import { PlayIcon } from '@heroicons/react/24/solid';
109
import { AlertCircle, Loader2Icon } from 'lucide-react';
1110
import { parseDate } from "../../lib/daterange";
1211
import { DateRangeSelector } from "../filters/DateRangeSelector";
1312
import logo from '../../img/quesma-logo-white-transparent-full.png';
1413
import { AiModal } from "../ai/AiModal";
1514
import { getBackendUrl } from "../../constants";
15+
import { ArrowPathIcon } from '@heroicons/react/24/solid';
1616

1717
function extractTableFromQuery(query: string) {
1818
const regex = /from\s+(\w+)/i;
@@ -311,25 +311,27 @@ export default function ObservabilityQueryLanguageComponent() {
311311
disabled={isLoading}
312312
style={{
313313
padding: '8px 16px',
314-
backgroundColor: '#3b82f6',
314+
backgroundColor: 'rgb(59, 130, 246)',
315315
color: 'white',
316-
borderRadius: '4px',
316+
borderRadius: '0',
317317
display: 'flex',
318318
alignItems: 'center',
319319
gap: '8px',
320320
border: 'none',
321321
cursor: 'pointer',
322322
transition: 'background-color 0.2s',
323323
opacity: isLoading ? 0.5 : 1,
324-
pointerEvents: isLoading ? 'none' : 'auto'
324+
pointerEvents: isLoading ? 'none' : 'auto',
325+
fontSize: '14px',
326+
fontWeight: '500'
325327
}}
326328
>
327329
{isLoading ? (
328-
<Loader2Icon style={{ width: '20px', height: '20px', animation: 'spin 1s linear infinite' }} />
330+
<Loader2Icon className="animate-spin" style={{ width: '16px', height: '16px' }} />
329331
) : (
330-
<PlayIcon style={{ width: '20px', height: '20px' }} />
332+
<ArrowPathIcon style={{ width: '16px', height: '16px' }} />
331333
)}
332-
Run Query
334+
Run query
333335
</button>
334336
</div>
335337

0 commit comments

Comments
 (0)