mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Graphite: Fix alignment of elements in the query editor (#87662)
style: ensure elements in query builder rows are aligned
This commit is contained in:
@@ -35,12 +35,16 @@ export function AddGraphiteFunction({ funcDefs }: Props) {
|
||||
}, [value, dispatch]);
|
||||
|
||||
return (
|
||||
<Segment
|
||||
Component={<Button icon="plus" variant="secondary" className={cx(styles.button)} aria-label="Add new function" />}
|
||||
options={options}
|
||||
onChange={setValue}
|
||||
inputMinWidth={150}
|
||||
/>
|
||||
<div>
|
||||
<Segment
|
||||
Component={
|
||||
<Button icon="plus" variant="secondary" className={cx(styles.button)} aria-label="Add new function" />
|
||||
}
|
||||
options={options}
|
||||
onChange={setValue}
|
||||
inputMinWidth={150}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@ type Props = {
|
||||
|
||||
export function MetricsSection({ segments = [], state }: Props) {
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
{segments.map((segment, index) => {
|
||||
return <MetricSegment segment={segment} metricIndex={index} key={index} state={state} />;
|
||||
})}
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ export function TagsSection({ tags, state }: Props) {
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
{tags.map((tag, index) => {
|
||||
return <TagEditor key={index} tagIndex={index} tag={tag} state={state} />;
|
||||
})}
|
||||
@@ -60,7 +60,7 @@ export function TagsSection({ tags, state }: Props) {
|
||||
/>
|
||||
)}
|
||||
{state.paused && <PlayButton />}
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user