-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fleet UI: Host filter styling/click bug fixes (#22147)
- Loading branch information
1 parent
7e389d1
commit 0fe6b6c
Showing
12 changed files
with
36 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
} | ||
|
||
&-label { | ||
width: 105px; | ||
line-height: 38px; | ||
font-size: $small; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,40 +10,23 @@ | |
// and other "form-fields" in the filter block | ||
width: initial; | ||
} | ||
} | ||
|
||
// NOTE: Look more into this styling | ||
&__os_settings-dropdown, | ||
&__macsettings-dropdown, | ||
&__sw-install-status-dropdown { | ||
.Select-value { | ||
// Vertically centers icon and text | ||
.Select-multi-value-wrapper { | ||
display: flex; | ||
align-items: center; | ||
position: initial !important; | ||
line-height: initial !important; | ||
|
||
&::before { | ||
position: relative; | ||
content: url(../assets/images/[email protected]); | ||
transform: scale(0.5); | ||
top: 1px; | ||
} | ||
} | ||
|
||
.Select-input { | ||
display: none !important; | ||
} | ||
|
||
.Select { | ||
box-sizing: initial; | ||
} | ||
|
||
.Select-control { | ||
height: 36px; | ||
} | ||
} | ||
|
||
&__os_settings-dropdown, | ||
&__macsettings-dropdown, | ||
&__sw-install-status-dropdown { | ||
.dropdown__select { | ||
border: 1px solid #e2e4ea; | ||
} | ||
|
||
.Select-multi-value-wrapper { | ||
width: 150px; // Fits all dropdown options without resizing | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 2 additions & 38 deletions
40
frontend/pages/hosts/ManageHostsPage/components/PoliciesFilter/_styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,5 @@ | ||
.policies-filter { | ||
display: flex; | ||
justify-content: flex-start; | ||
align-items: center; | ||
|
||
&__status_dropdown { | ||
width: 114px; | ||
|
||
.Select-menu-outer { | ||
width: 114px; | ||
max-height: 310px; | ||
|
||
.Select-menu { | ||
max-height: none; | ||
|
||
.dropdown__option { | ||
font-size: $small !important; | ||
} | ||
} | ||
} | ||
.Select-value { | ||
padding-left: $pad-medium; | ||
padding-right: $pad-medium; | ||
|
||
&::before { | ||
display: inline-block; | ||
position: absolute; | ||
padding: 5px 0 0 0; // centers spin | ||
content: url(../assets/images/[email protected]); | ||
transform: scale(0.5); | ||
width: 16px; | ||
height: 26px; | ||
left: 2px; | ||
} | ||
} | ||
.Select-value-label { | ||
padding-left: $pad-large; | ||
font-size: $small !important; | ||
} | ||
.Select-multi-value-wrapper { | ||
width: 91px; // Fits all dropdown options without resizing | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters