Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Center the placement of dropdown toggle-icon on the metrics time selection #2997

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions frontend/public/components/_dropdown.scss
Expand Up @@ -22,6 +22,15 @@ $dropdown-background--hover: $color-pf-black-200; // pf-c-dropdown__menu-item--h
}
}

.dropdown-button--icon-only {
height: 34.5px !important; // default form element height
margin-left: -1px;
min-width: auto !important;
.pf-c-dropdown__toggle-icon {
margin: 0 !important;
}
}

.dropdown__disabled {
color: $dropdown-link-disabled-color;
cursor: not-allowed;
Expand Down
5 changes: 0 additions & 5 deletions frontend/public/components/monitoring/_monitoring.scss
Expand Up @@ -120,11 +120,6 @@
}
}

.query-browser__span-dropdown-button {
margin-left: -1px;
width: 44px;
}

.query-browser__span-dropdown-menu {
right: 0;
width: 130px;
Expand Down
3 changes: 1 addition & 2 deletions frontend/public/components/monitoring/query-browser.tsx
Expand Up @@ -110,12 +110,11 @@ const SpanControls: React.FC<SpanControlsProps> = React.memo(
value={text}
/>
<Dropdown
buttonClassName="query-browser__span-dropdown-button"
buttonClassName="dropdown-button--icon-only"
items={dropdownItems}
menuClassName="query-browser__span-dropdown-menu"
noSelection={true}
onChange={(v) => setSpan(v)}
title="&nbsp;"
/>
<Button
className="query-browser__inline-control"
Expand Down