added visual indicator of search results
This commit is contained in:
@@ -314,6 +314,7 @@ export class PlaylistView
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.header {
|
||||
@@ -596,6 +597,27 @@ export class PlaylistView
|
||||
color: var(--yj-text-secondary, #b3b3b3);
|
||||
}
|
||||
|
||||
.search-indicator {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 5;
|
||||
pointer-events: none;
|
||||
background: var(--yj-bg-overlay, #495057);
|
||||
color: var(
|
||||
--yj-text-secondary,
|
||||
#b3b3b3
|
||||
);
|
||||
font-size: 12px;
|
||||
padding: 4px 14px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid
|
||||
var(--yj-border-subtle, #555);
|
||||
white-space: nowrap;
|
||||
opacity: 0.92;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -1721,6 +1743,15 @@ export class PlaylistView
|
||||
</div>
|
||||
</div>
|
||||
|
||||
${this.searchCtrl.term &&
|
||||
this.filteredEntries.length > 0
|
||||
? html`<div class="search-indicator">
|
||||
Showing results for
|
||||
“${this.searchCtrl
|
||||
.term}”
|
||||
</div>`
|
||||
: nothing}
|
||||
|
||||
${this.creating
|
||||
? this.renderCreateForm()
|
||||
: nothing}
|
||||
|
||||
Reference in New Issue
Block a user