fix(search): replace dropdown with popover for search results and improve visibility handling (#355)

* fix(search): replace dropdown with popover for search results and improve visibility handling

* fix(search): improve search results popover styling and transition effects
This commit is contained in:
brios
2026-04-22 17:27:01 -04:00
committed by Zach Yale
parent 64083fe9b7
commit a176be3e74
5 changed files with 83 additions and 43 deletions
+31
View File
@@ -24,6 +24,9 @@ html {
--book-type-m4a-color: #f43f5e;
--book-type-opus-color: #06b6d4;
--book-type-physical-color: #8b5cf6;
// Search Context
--app-search-width-desktop: 450px;
}
* {
@@ -84,3 +87,31 @@ html {
top: auto !important;
bottom: 0;
}
// Global Search Results Popover (Appended to Body)
.p-popover.search-results-popover {
padding: 0;
background: var(--card-background);
border-radius: 8px;
box-shadow: 0 10px 40px -10px rgb(0 0 0 / 50%);
border: 1px solid var(--border-color);
overflow: hidden;
@media (width >= 768px) {
width: var(--app-search-width-desktop) !important; // Match the search input exactly
}
.p-popover-content {
padding: 0;
background: transparent;
border: none;
}
.search-dropdown {
width: 100%;
@media (width >= 768px) {
width: var(--app-search-width-desktop);
}
}
}