fix(webui): show route-aligned skeletons from first paint (#6303)

This commit is contained in:
chengyongru authored and GitHub committed 2026-10-19 15:57:32 +08:00
1 parent af68da3280
commit 5d886fbb20
43 files changed
+1592 -213

No files matched your search

+3 -27
View File
@@ -77,22 +77,8 @@
}
}
.startup-shell { position: relative; height: 100%; }
.startup-header { display: flex; justify-content: space-between; padding: 5px 13px; }
.startup-control-shadow {
width: 28px; height: 28px; border-radius: 8px; background: rgba(0,0,0,0.025);
}
.startup-composer {
position: absolute; inset-inline: 16px; bottom: max(24px, env(safe-area-inset-bottom));
box-sizing: border-box; max-width: 768px; margin-inline: auto;
height: 96px; border-radius: 24px; background: rgba(0,0,0,0.025);
}
.startup-status {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
html.dark :is(.startup-control-shadow, .startup-composer) { background: rgba(255,255,255,0.035); }
</style>
<!--startup-style-->
<script>
(function () {
try {
@@ -120,18 +106,8 @@
</head>
<body class="bg-background text-foreground antialiased">
<div class="pwa-status-bar-surface" aria-hidden="true"></div>
<div id="root">
<main class="startup-shell" aria-busy="true">
<div class="startup-header" aria-hidden="true">
<span class="startup-control-shadow"></span>
<span class="startup-control-shadow"></span>
</div>
<div class="startup-composer" aria-hidden="true"></div>
<div class="startup-status" role="status">
<span data-boot-copy>Loading nanobot…</span>
</div>
</main>
</div>
<div id="root"><!--startup-shell--></div>
<!--startup-script-->
<script>
(function () {
var localeKey = "nanobot.locale";