Skip to content

Commit

Permalink
Query Browser: Align controls with left & right edges of graph & table
Browse files Browse the repository at this point in the history
Aligns the metrics dropdown on the left and aligns the "Run Queries"
button on the right.
  • Loading branch information
kyoto committed Jul 21, 2019
1 parent f7d7d45 commit f24df11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions frontend/public/components/monitoring/_monitoring.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@
flex-wrap: wrap-reverse;
justify-content: space-between;
margin-bottom: 15px;
padding: 0 20px;
width: 100%;

&--graph {
padding: 0;
}
}

.query-browser__controls--left {
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/components/monitoring/query-browser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const QueryBrowser_: React.FC<QueryBrowserProps> = ({
}

return <div className={classNames('query-browser__wrapper', {'graph-empty-state': _.isEmpty(graphData)})}>
<div className="query-browser__controls query-browser__controls--graph">
<div className="query-browser__controls">
<div className="query-browser__controls--left">
<SpanControls defaultSpanText={defaultSpanText} onChange={onSpanChange} span={span} />
{updating && <div className="query-browser__loading">
Expand Down

0 comments on commit f24df11

Please sign in to comment.