Prevent logo flickering when loading

We set the logo size so that it takes up the same space before it is
loaded as when it is fully loaded. This way the search bar doesn't get
pulled to the left and there is no visual flickering.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2023-05-03 14:25:02 +02:00
parent 2b25533b58
commit cc2e5a1a67
2 changed files with 6 additions and 34 deletions
+6 -1
View File
@@ -56,7 +56,12 @@
<header>
<div class="left">
<Link route={{ resource: "home" }}>
<img class="logo" alt="Radicle logo" src="/radicle.svg" />
<img
width="40"
height="40"
class="logo"
alt="Radicle logo"
src="/radicle.svg" />
</Link>
<Search />
</div>