mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prometheus: Add text to Add operation button (#46249)
This commit is contained in:
parent
23956557d8
commit
1604e09549
@ -115,7 +115,9 @@ export function OperationList<T extends QueryWithOperations>({
|
||||
placeholder={'Search'}
|
||||
/>
|
||||
) : (
|
||||
<Button icon={'plus'} variant={'secondary'} onClick={() => setCascaderOpen(true)} title={'Add operation'} />
|
||||
<Button icon={'plus'} variant={'secondary'} onClick={() => setCascaderOpen(true)} title={'Add operation'}>
|
||||
Operations
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</Stack>
|
||||
@ -126,17 +128,20 @@ export function OperationList<T extends QueryWithOperations>({
|
||||
const getStyles = (theme: GrafanaTheme2) => {
|
||||
return {
|
||||
heading: css({
|
||||
label: 'heading',
|
||||
fontSize: 12,
|
||||
fontWeight: theme.typography.fontWeightMedium,
|
||||
marginBottom: 0,
|
||||
}),
|
||||
operationList: css({
|
||||
label: 'operationList',
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap',
|
||||
gap: theme.spacing(2),
|
||||
}),
|
||||
addButton: css({
|
||||
width: 150,
|
||||
label: 'addButton',
|
||||
width: 126,
|
||||
paddingBottom: theme.spacing(1),
|
||||
}),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user