feat: filters on the subscriptions page

feat: search subscriptions by name
This commit is contained in:
Miguel Ribeiro
2024-03-09 18:12:07 +01:00
committed by GitHub
parent 07f464741f
commit a396285b76
18 changed files with 444 additions and 120 deletions
+55 -6
View File
@@ -163,7 +163,7 @@ main > .contain {
margin: 0px 0px 20px 0px;
display: flex;
flex-direction: row;
justify-content: end;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
position: relative;
@@ -176,6 +176,7 @@ main > .contain {
@media (max-width: 768px) {
.main-actions {
justify-content: space-between;
flex-direction: column-reverse;
}
}
@@ -187,12 +188,13 @@ main > .contain {
font-weight: 500;
text-align: center;
vertical-align: middle;
justify-content: center;
cursor: pointer;
user-select: none;
color: #fff;
border: 1px solid #007bff;
background-color: #007bff;
padding: 14px 30px;
padding: 15px 30px;
font-size: 1rem;
border-radius: 8px;
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
@@ -208,6 +210,28 @@ main > .contain {
padding: 14px 20px;
}
.top-actions {
display: flex;
flex-direction: row;
gap: 16px;
align-items: center;
width: auto;
}
.top-actions .search {
flex-grow: 1;
}
.top-actions > .search > .search-icon {
float: right;
right: 15px;
margin-top: -35px;
position: relative;
z-index: 2;
color: #007bff;
font-size: 20px;
}
.subscriptions {
display: flex;
flex-direction: column;
@@ -229,6 +253,10 @@ main > .contain {
cursor: pointer;
}
.subscription.hide {
display: none;
}
.subscription.inactive {
opacity: 0.6;
}
@@ -380,7 +408,8 @@ main > .contain {
margin-right: 0px;;
}
.empty-page {
.empty-page,
.no-matching-subscriptions {
display: block;
max-width: 90%;
margin: auto;
@@ -388,15 +417,25 @@ main > .contain {
font-size: 20px;
}
.empty-page > img {
.empty-page > img,
.no-matching-subscriptions > img {
max-width: 100%;
}
.no-matching-subscriptions > img {
margin-top: 30px;
}
.empty-page > p {
margin: 5px 0px 40px 0px;
}
.empty-page > button {
.no-matching-subscriptions > p {
margin: 30px 0px 40px 0px;
}
.empty-page > button,
.no-matching-subscriptions > button {
margin: 0px auto;
}
@@ -1378,7 +1417,13 @@ input[type="checkbox"] {
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
z-index: 3;
overflow: hidden;
margin-top: 4px;
margin-top: 6px;
}
@media (max-width: 354px) {
.on-dashboard .filtermenu-content {
right: -94px;
}
}
.filtermenu-content.is-open {
@@ -1395,6 +1440,10 @@ input[type="checkbox"] {
user-select: none;
}
.filtermenu-content .filtermenu-submenu.hide {
display: none;
}
.filtermenu-content .filtermenu-submenu:last-of-type .filter-title {
border-bottom: none;
}