Browse Source

properly less jank when re-initing

master
Martin Dørum 2 years ago
parent
commit
261b373522
1 changed files with 13 additions and 4 deletions
  1. 13
    4
      client/src/App.svelte

+ 13
- 4
client/src/App.svelte View File

@@ -68,9 +68,18 @@
connected = true;
words = data.words;

items = {};
for (let i in data.items)
items[i] = { pending: false, content: data.items[i], index: i };
for (let i in items) {
if (!data.items[i])
delete items[i];
}

for (let i in data.items) {
if (items[i] == null) items[i] = {};
items[i].content = data.items[i];
items[i].index = i;
items[i].pending = false;
}

sortItems();
}

@@ -107,7 +116,7 @@

.loading {
position: absolute;
bottom: 0px;
bottom: 12px;
left: 0px;
right: 0px;
}

Loading…
Cancel
Save