Skip to content

Commit

Permalink
style: ensure elements in query builder rows are aligned
Browse files Browse the repository at this point in the history
  • Loading branch information
NWRichmond committed May 10, 2024
1 parent 06a2791 commit a7b853d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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} />;
})}
Expand All @@ -60,7 +60,7 @@ export function TagsSection({ tags, state }: Props) {
/>
)}
{state.paused && <PlayButton />}
</>
</div>
);
}

Expand Down

0 comments on commit a7b853d

Please sign in to comment.