Filter box styling fixes

pull/66/head
Zef Hemel 2022-08-01 13:05:30 +02:00
parent ea033509c7
commit 339a8a9402
2 changed files with 88 additions and 83 deletions

View File

@ -122,6 +122,7 @@ export function FilterList({
}, []); }, []);
const returnEl = ( const returnEl = (
<div className="filter-wrapper">
<div className="filter-box"> <div className="filter-box">
<div className="header"> <div className="header">
<label>{label}</label> <label>{label}</label>
@ -205,6 +206,7 @@ export function FilterList({
: null} : null}
</div> </div>
</div> </div>
</div>
); );
useEffect(() => { useEffect(() => {

View File

@ -1,12 +1,10 @@
@import "constants"; @import "constants";
.filter-box { .filter-wrapper {
position: absolute; position: absolute;
font-family: $ui-font;
margin: auto; margin: auto;
max-width: 500px; max-width: 500px;
height: 600px; height: 600px;
background-color: #fff;
left: 0; left: 0;
right: 0; right: 0;
top: 0; top: 0;
@ -14,9 +12,15 @@
max-height: 290px; max-height: 290px;
overflow: hide; overflow: hide;
z-index: 100; z-index: 100;
}
.filter-box {
font-family: $ui-font;
background-color: #fff;
border: rgb(103, 103, 103) 1px solid; border: rgb(103, 103, 103) 1px solid;
border-radius: 8px; border-radius: 8px;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
margin: 10px;
.header { .header {
border-bottom: 1px rgb(108, 108, 108) solid; border-bottom: 1px rgb(108, 108, 108) solid;
@ -53,7 +57,6 @@
.result-list { .result-list {
max-height: 200px; max-height: 200px;
overflow-y: scroll; overflow-y: scroll;
background-color: white;
.icon { .icon {
padding: 0 8px 0 5px; padding: 0 8px 0 5px;