Skip to content

Commit

Permalink
Make sort box visible on small screens (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedBasem20 authored Aug 28, 2023
1 parent 3c99c84 commit 9aaf614
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions aiida-registry-app/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ padding-right: 5px;
background-color: #fff;
border-radius: 4px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
z-index: 99;
}

.suggestion-item {
Expand All @@ -475,6 +476,11 @@ padding-right: 5px;
.suggestion-item:hover {
background-color: #f2f2f2;
}
.bar-container {
display: flex;
flex-direction: row;
margin: 0 2%;
}


@media only screen and (min-width : 150px) and (max-width : 780px)
Expand Down Expand Up @@ -520,4 +526,8 @@ padding-right: 5px;
{
width: calc(100% - 70px) !important;
}
.bar-container
{
display: block;
}
}
6 changes: 3 additions & 3 deletions aiida-registry-app/src/Components/MainIndex.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ export function MainIndex() {
<h1>
Package list
</h1>
<div style={{display:'flex', flexDirection:'row', margin:'0 2%'}}>
<div className='bar-container'>
<div style={{ flex:'1', marginRight:'10px'}}>
<Search />
</div>
<Box >
<Box>
<FormControl >
<InputLabel id="demo-simple-select-label">Sort</InputLabel>
<InputLabel>Sort</InputLabel>
<Select
value={sortOption} label = "Sort" onChange={(e) => handleSort(e.target.value)}
>
Expand Down

0 comments on commit 9aaf614

Please sign in to comment.