mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 01:18:27 +00:00
web/layout: preload meowbalt assets
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
no more flickering i hope is this rational? maybe not so much, but it makes cobalt feel like a native app
This commit is contained in:
parent
429591c445
commit
e6e2fea870
@ -75,6 +75,7 @@
|
||||
data-theme={browser ? $currentTheme : undefined}
|
||||
lang={$locale}
|
||||
>
|
||||
<div id="preload-meowbalt" aria-hidden="true"></div>
|
||||
<div
|
||||
id="cobalt"
|
||||
class:loaded={browser}
|
||||
@ -644,4 +645,17 @@
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* preload meowbalt assets to prevent flickering in dialogs */
|
||||
#preload-meowbalt {
|
||||
width: 0;
|
||||
height: 0;
|
||||
position: absolute;
|
||||
z-index: -10;
|
||||
content:
|
||||
url(/meowbalt/smile.png)
|
||||
url(/meowbalt/error.png)
|
||||
url(/meowbalt/question.png)
|
||||
url(/meowbalt/think.png);
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user