feat: add filter dropdown #26 (#142)

feat(FilterItemDropdown): added a filter dropdown component from #26 

* fix(react-multi-select-component): adjusted the component to fit in with other components when comparing across multiple browsers. (where firefox consistently handles pixels and rem's, chromium doesn't agree).

refactor(input): removed shadow from input components to match react-multi-select-component look where needed.

refactor(SwitchGroup): added a small top margin for a less dense look. cleaned up surrounding code.

refactor(DeleteModal): adjusted the background color to fit more nicely across dark/light themes. made the exclamation icon bigger and removed the circle container.

refactor(Logs): adjusted text color on the light theme. cleaned up the code.

refactor(FilterAddForm): adapted to conform with the changes.

feat(FilterItemDropdown): added a dropdown component to the filter list as proposed in #26. could use a better look, though. also, cleaned up surrounding code and got rid of pesky negative margins.

refactor(FilterListItem): made the table striped when using the dark theme. adapter for the dropdown component.

refactor(filters/details):
- removed needless border properties from remove button, which left artifacts after de-focusing the button. also, removed the shadow from the cancel button.
- added invalidation of the filter list on a delete mutation before redirecting to /filters.
- modified certain group descriptions a bit in order to make them a bit more concise.
- overall, cleaned up the surrounding code further.
This commit is contained in:
stacksmash76 2022-02-17 20:59:06 +01:00 committed by GitHub
parent d4d9169210
commit 279d4ff7a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 356 additions and 206 deletions

View file

@ -32,7 +32,6 @@ code {
animation: enter 0.2s ease-out;
}
@keyframes leave {
0% {
transform: scale(1);
@ -50,21 +49,64 @@ code {
}
.rmsc {
--rmsc-p: 8px !important;
--rmsc-radius: 4px !important;
--rmsc-h: 28px !important;
--rmsc-p: 0.75rem !important;
--rmsc-radius: 0.375rem !important;
--rmsc-h: unset !important;
}
@media (prefers-color-scheme: dark) {
.rmsc.dark {
--rmsc-main: #3B82F6 !important;
--rmsc-hover: #464646 !important;
--rmsc-selected: #1b1b1b !important;
--rmsc-border: #3F3F46 !important;
--rmsc-gray: #71717a !important;
--rmsc-bg: #27272A !important;
color: #fff !important;
}
.rmsc .dropdown-heading {
padding: 0.5rem 0.75rem !important;
}
.rmsc .dropdown-heading-value {
line-height: 1.5rem;
}
.rmsc .dropdown-heading-dropdown-arrow {
width: 18px;
height: 18px;
margin: -6px 0 0 -6px;
}
.rmsc .dropdown-search-clear-icon {
width: 18px;
height: 18px;
margin: -6px 10px 0 -6px;
}
.rmsc .search input {
height: unset !important;
padding: 0.5rem 0.75rem !important;
}
.rmsc .item-renderer {
align-items: center !important;
}
.rmsc .item-renderer input {
margin: 0 0.5rem 0 0 !important;
}
.rmsc .item-renderer > input[type="checkbox"] {
border: 1px solid var(--rmsc-main);
}
.rmsc.dark .item-renderer > input[type="checkbox"] {
background-color: unset;
}
.rmsc .item-renderer > input[type="checkbox"]:hover {
border: 1px solid var(--rmsc-main);
}
.rmsc.dark {
--rmsc-main: #3B82F6 !important;
--rmsc-hover: #464646 !important;
--rmsc-selected: #1b1b1b !important;
--rmsc-border: #3F3F46 !important;
--rmsc-gray: #71717a !important;
--rmsc-bg: #27272A !important;
color: #fff !important;
}
.pattern {