Skip to content

Commit

Permalink
Fixed loading screen cutting away before ready and responsiveness iss…
Browse files Browse the repository at this point in the history
…ue on mobile
  • Loading branch information
drashevsky committed Mar 22, 2024
1 parent 3066cc1 commit 692e985
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@ html, html > body {

@media (max-width: 684px) {
html, html > body {
font-size: 0.85em;
font-size: 0.95em;
}
}

@media (max-width: 382px) {
html, html > body {
font-size: 0.75em;
}
}
3 changes: 1 addition & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,13 @@
document.getElementById("input-bar")?.focus();
}
}
loaded = true;
}
// Receives text -> embedding result from embedding adapter worker, updates current embedding,
// adds new block w/ embedding to blockstore if user had pressed enter
async function handleAdapter(msg : MessageEvent) {
if (msg.data.type == "init" && msg.data.value) {
loaded = true;
tokenLimit = msg.data.value;
console.log("Confirmed worker creation.");
Expand Down

0 comments on commit 692e985

Please sign in to comment.