Skip to content

armgit / kokon

Public Imported from GitHub
0

Edit photos by describing the change, on your own GPU. A free, open-source alternative to Nano Banana and ChatGPT image editing: photos stay on your computer, no daily limit. One installer for Windows, Mac and Linux sets up the best open model (Qwen-Image 2.1). MCP server for AI agents.

Keep the startup logo centred when the app takes over from the HTML splash

Gabriele Lozuponeadd4273ab35d
diff --git a/src/styles.css b/src/styles.css
index 2ac9084..b962c92 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -481,9 +481,12 @@ pre.diag { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font
@media (prefers-reduced-motion: reduce) { .welcome, .showcase-media img, .showcase-media video { animation: none; } }
/* Startup: continues the HTML splash of index.html. */
-.boot-splash { display: flex; flex-direction: column; align-items: center; gap: 18px; }
+/* Same box as the index.html splash (full window, mark centred); the text sits under the
+ mark without moving it, so the hand-over from the HTML splash does not jump. */
+.boot-splash { position: relative; width: 100%; height: 100vh; display: grid; place-items: center; }
+.boot-splash .kokon-mark svg { width: 56px; height: 56px; }
.boot-splash .kokon-mark { animation: boot-breathe 1.6s ease-in-out infinite; opacity: 0.9; }
-.boot-text { font-size: 13px; opacity: 0; transition: opacity 0.4s; }
+.boot-text { position: absolute; top: calc(50% + 48px); left: 0; right: 0; text-align: center; font-size: 13px; opacity: 0; transition: opacity 0.4s; }
.boot-text.on { opacity: 1; }
@keyframes boot-breathe { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .boot-splash .kokon-mark { animation: none; } }