fix(myqbz): replicate the empty-state flash during load (1:1)
Drop the `&& !MyQbzState.loading` gate on the zero-items empty states so "No mixtapes yet" / "No collections yet" shows during load instead of a blank, matching the Tauri/Svelte behavior (empty array -> empty state flashes until the load resolves). Per user decision (DQ: replicate). cc
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -162,7 +162,7 @@ export component CollectionsView inherits Rectangle {
|
|||||||
Rectangle { height: 16px; }
|
Rectangle { height: 16px; }
|
||||||
|
|
||||||
// ====================== EMPTY STATE ========================
|
// ====================== EMPTY STATE ========================
|
||||||
if MyQbzState.collections.length == 0 && MyQbzState.col-search == "" && MyQbzState.col-kind-filter == "all" && !MyQbzState.loading: VerticalLayout {
|
if MyQbzState.collections.length == 0 && MyQbzState.col-search == "" && MyQbzState.col-kind-filter == "all": VerticalLayout {
|
||||||
padding-top: 80px;
|
padding-top: 80px;
|
||||||
padding-bottom: 80px;
|
padding-bottom: 80px;
|
||||||
spacing: 16px;
|
spacing: 16px;
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ export component MixtapesView inherits Rectangle {
|
|||||||
Rectangle { height: 16px; }
|
Rectangle { height: 16px; }
|
||||||
|
|
||||||
// ====================== EMPTY STATE ========================
|
// ====================== EMPTY STATE ========================
|
||||||
if MyQbzState.mixtapes.length == 0 && MyQbzState.mix-search == "" && !MyQbzState.loading: VerticalLayout {
|
if MyQbzState.mixtapes.length == 0 && MyQbzState.mix-search == "": VerticalLayout {
|
||||||
padding-top: 80px;
|
padding-top: 80px;
|
||||||
padding-bottom: 80px;
|
padding-bottom: 80px;
|
||||||
spacing: 16px;
|
spacing: 16px;
|
||||||
|
|||||||
Reference in new issue
Block a user