mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Select query style bugs (#11043)
This commit is contained in:
parent
12e2047af9
commit
dc7bfd2a35
3
changes/11034-select-query-modal-style-bugs
Normal file
3
changes/11034-select-query-modal-style-bugs
Normal file
@ -0,0 +1,3 @@
|
||||
- Fix styling bugs on the SelectQueryModal:
|
||||
- y-misaligned "OR"
|
||||
- x- and y-misaligned query list
|
@ -12,7 +12,7 @@ $base-class: "button";
|
||||
|
||||
@if $inverse {
|
||||
&:hover {
|
||||
background-color: rgba(#192147, .05);
|
||||
background-color: rgba(#192147, 0.05);
|
||||
|
||||
&:active {
|
||||
background-color: $ui-fleet-black-10;
|
||||
@ -34,7 +34,6 @@ $base-class: "button";
|
||||
border-radius: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
} @else {
|
||||
&:hover:not(.button--disabled) {
|
||||
background-color: $hover;
|
||||
@ -45,7 +44,7 @@ $base-class: "button";
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
@include button-focus-outline()
|
||||
@include button-focus-outline();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -355,6 +354,8 @@ $base-class: "button";
|
||||
display: flex;
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
gap: $pad-xsmall;
|
||||
align-items: flex-start;
|
||||
|
||||
.info {
|
||||
&__header {
|
||||
@ -366,7 +367,6 @@ $base-class: "button";
|
||||
width: 100%;
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -106,19 +106,21 @@ const SelectQueryModal = ({
|
||||
<Button
|
||||
key={query.id}
|
||||
variant="unstyled-modal-query"
|
||||
className="modal-query-button"
|
||||
className={`${baseClass}__modal-query-button`}
|
||||
onClick={() => onQueryHostSaved(query)}
|
||||
>
|
||||
<>
|
||||
<span className="info__header">{query.name}</span>
|
||||
{query.description && (
|
||||
<span className="info__data">{query.description}</span>
|
||||
)}
|
||||
</>
|
||||
</Button>
|
||||
);
|
||||
});
|
||||
return (
|
||||
<div>
|
||||
<div className={`${baseClass}__query-modal`}>
|
||||
<div className={`${baseClass}__filter-create-wrapper`}>
|
||||
<div className={`${baseClass}__filter-queries`}>
|
||||
<InputField
|
||||
name="query-filter"
|
||||
@ -143,7 +145,7 @@ const SelectQueryModal = ({
|
||||
if (queriesFilter && queriesCount === 0) {
|
||||
return (
|
||||
<div>
|
||||
<div className={`${baseClass}__query-modal`}>
|
||||
<div className={`${baseClass}__filter-create-wrapper`}>
|
||||
<div className={`${baseClass}__filter-queries`}>
|
||||
<InputField
|
||||
name="query-filter"
|
||||
|
@ -26,7 +26,6 @@
|
||||
font-weight: normal;
|
||||
font-size: $x-small;
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
.modal-cta-wrap {
|
||||
@ -34,8 +33,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
&__query-modal {
|
||||
&__filter-create-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
&__filter-queries {
|
||||
@ -53,6 +54,10 @@
|
||||
left: 8px;
|
||||
}
|
||||
|
||||
.form-field {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.input-field {
|
||||
padding-left: 44px;
|
||||
}
|
||||
@ -68,6 +73,7 @@
|
||||
|
||||
&__create-query {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
span {
|
||||
margin: 15px;
|
||||
|
Loading…
Reference in New Issue
Block a user